[Lldb-commits] [lldb] r131081 - /lldb/trunk/source/Plugins/Process/Utility/RegisterContextMacOSXFrameBackchain.cpp

Greg Clayton gclayton at apple.com
Sun May 8 20:39:34 PDT 2011


Author: gclayton
Date: Sun May  8 22:39:34 2011
New Revision: 131081

URL: http://llvm.org/viewvc/llvm-project?rev=131081&view=rev
Log:
Fixed an issue with the MacOSX backchain register context where the pc was
being returned for both the PC and FP.


Modified:
    lldb/trunk/source/Plugins/Process/Utility/RegisterContextMacOSXFrameBackchain.cpp

Modified: lldb/trunk/source/Plugins/Process/Utility/RegisterContextMacOSXFrameBackchain.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/RegisterContextMacOSXFrameBackchain.cpp?rev=131081&r1=131080&r2=131081&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/RegisterContextMacOSXFrameBackchain.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/RegisterContextMacOSXFrameBackchain.cpp Sun May  8 22:39:34 2011
@@ -102,7 +102,7 @@
     case LLDB_REGNUM_GENERIC_FP:
         if (m_cursor.fp == LLDB_INVALID_ADDRESS)
             return false;
-        reg_value = m_cursor.pc;
+        reg_value = m_cursor.fp;
         break;
     
     default:





More information about the lldb-commits mailing list