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) {
319319 info.pl_siginfo .si_addr );
320320
321321 if (thread) {
322- auto ®ctx = static_cast <NativeRegisterContextFreeBSD &>(
323- thread->GetRegisterContext ());
324322 auto thread_info =
325323 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 ()) {
328325 thread->SetStoppedByTrace ();
329326 Status brkpt_error = RemoveBreakpoint (thread_info->second );
330327 if (brkpt_error.Fail ())
Original file line number Diff line number Diff line change @@ -829,11 +829,8 @@ void NativeProcessLinux::MonitorBreakpoint(NativeThreadLinux &thread) {
829829 thread.SetStoppedByBreakpoint ();
830830 FixupBreakpointPCAsNeeded (thread);
831831
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 ())
837834 thread.SetStoppedByTrace ();
838835
839836 StopRunningThreads (thread.GetID ());
You can’t perform that action at this time.
0 commit comments