[Lldb-commits] [lldb] r198977 - Add the offset for cfa+offset log messages in the unwind channel, to aid in debugging.

Jason Molenda jmolenda at apple.com
Fri Jan 10 15:53:32 PST 2014


Author: jmolenda
Date: Fri Jan 10 17:53:32 2014
New Revision: 198977

URL: http://llvm.org/viewvc/llvm-project?rev=198977&view=rev
Log:
Add the offset for cfa+offset log messages in the unwind channel, to aid in debugging.

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

Modified: lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp?rev=198977&r1=198976&r2=198977&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp Fri Jan 10 17:53:32 2014
@@ -1201,7 +1201,7 @@ RegisterContextLLDB::SavedLocationForReg
         regloc.type = UnwindLLDB::RegisterLocation::eRegisterValueInferred;
         regloc.location.inferred_value = m_cfa + offset;
         m_registers[lldb_regnum] = regloc;
-        UnwindLogMsg ("supplying caller's register %d, value is CFA plus offset", lldb_regnum);
+        UnwindLogMsg ("supplying caller's register %d, value is CFA plus offset %d", lldb_regnum, offset);
         return UnwindLLDB::RegisterSearchResult::eRegisterFound;
     }
 
@@ -1211,7 +1211,7 @@ RegisterContextLLDB::SavedLocationForReg
         regloc.type = UnwindLLDB::RegisterLocation::eRegisterSavedAtMemoryLocation;
         regloc.location.target_memory_location = m_cfa + offset;
         m_registers[lldb_regnum] = regloc;
-        UnwindLogMsg ("supplying caller's register %d from the stack, saved at CFA plus offset", lldb_regnum);
+        UnwindLogMsg ("supplying caller's register %d from the stack, saved at CFA plus offset %d", lldb_regnum, offset);
         return UnwindLLDB::RegisterSearchResult::eRegisterFound;
     }
 





More information about the lldb-commits mailing list