[Lldb-commits] [lldb] [lldb] Detect a Darwin kernel issue and work around it (PR #81573)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 13 10:57:32 PST 2024
================
@@ -825,6 +806,56 @@ StopInfoSP StopInfoMachException::CreateStopReasonWithMachException(
break;
}
- return StopInfoSP(new StopInfoMachException(thread, exc_type, exc_data_count,
- exc_code, exc_sub_code));
+ return StopInfoSP(new StopInfoMachException(
+ thread, exc_type, exc_data_count, exc_code, exc_sub_code,
+ not_stepping_but_got_singlestep_exception));
+}
+
+// Detect an unusual situation on Darwin where:
+//
+// 0. We did an instruction-step before this.
+// 1. We have a hardware breakpoint or watchpoint set.
+// 2. We are resuming the process.
----------------
jimingham wrote:
Technically we also "resume" the process when we single step. You mean we're not single stepping here, I'd say the explicitly.
https://github.com/llvm/llvm-project/pull/81573
More information about the lldb-commits
mailing list