[Lldb-commits] [lldb] r256248 - Remove PC -1 offset from FreeBSD arm64 UpdateAfterBreakpoint

Ed Maste via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 22 07:57:21 PST 2015


Author: emaste
Date: Tue Dec 22 09:57:21 2015
New Revision: 256248

URL: http://llvm.org/viewvc/llvm-project?rev=256248&view=rev
Log:
Remove PC -1 offset from FreeBSD arm64 UpdateAfterBreakpoint

It was a copy-and-paste leftover.

Modified:
    lldb/trunk/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_arm64.cpp

Modified: lldb/trunk/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_arm64.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_arm64.cpp?rev=256248&r1=256247&r2=256248&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_arm64.cpp (original)
+++ lldb/trunk/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_arm64.cpp Tue Dec 22 09:57:21 2015
@@ -260,13 +260,11 @@ RegisterContextPOSIXProcessMonitor_arm64
 bool
 RegisterContextPOSIXProcessMonitor_arm64::UpdateAfterBreakpoint()
 {
-    // PC points one byte past the int3 responsible for the breakpoint.
     lldb::addr_t pc;
 
     if ((pc = GetPC()) == LLDB_INVALID_ADDRESS)
         return false;
 
-    SetPC(pc - 1);
     return true;
 }
 




More information about the lldb-commits mailing list