File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
lldb/source/Plugins/Process Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -319,12 +319,9 @@ void NativeProcessFreeBSD::MonitorSIGTRAP(lldb::pid_t pid) {
319
319
info.pl_siginfo .si_addr );
320
320
321
321
if (thread) {
322
- auto ®ctx = static_cast <NativeRegisterContextFreeBSD &>(
323
- thread->GetRegisterContext ());
324
322
auto thread_info =
325
323
m_threads_stepping_with_breakpoint.find (thread->GetID ());
326
- if (thread_info != m_threads_stepping_with_breakpoint.end () &&
327
- threads_info->second == regctx.GetPC ()) {
324
+ if (thread_info != m_threads_stepping_with_breakpoint.end ()) {
328
325
thread->SetStoppedByTrace ();
329
326
Status brkpt_error = RemoveBreakpoint (thread_info->second );
330
327
if (brkpt_error.Fail ())
Original file line number Diff line number Diff line change @@ -829,11 +829,8 @@ void NativeProcessLinux::MonitorBreakpoint(NativeThreadLinux &thread) {
829
829
thread.SetStoppedByBreakpoint ();
830
830
FixupBreakpointPCAsNeeded (thread);
831
831
832
- NativeRegisterContextLinux ®_ctx = thread.GetRegisterContext ();
833
- auto stepping_with_bp_it =
834
- m_threads_stepping_with_breakpoint.find (thread.GetID ());
835
- if (stepping_with_bp_it != m_threads_stepping_with_breakpoint.end () &&
836
- stepping_with_bp_it->second == reg_ctx.GetPC ())
832
+ if (m_threads_stepping_with_breakpoint.find (thread.GetID ()) !=
833
+ m_threads_stepping_with_breakpoint.end ())
837
834
thread.SetStoppedByTrace ();
838
835
839
836
StopRunningThreads (thread.GetID ());
You can’t perform that action at this time.
0 commit comments