[Lldb-commits] [lldb] r123052 - /lldb/trunk/source/Plugins/Process/Utility/UnwindLLDB.cpp
Greg Clayton
gclayton at apple.com
Fri Jan 7 17:53:06 PST 2011
Author: gclayton
Date: Fri Jan 7 19:53:06 2011
New Revision: 123052
URL: http://llvm.org/viewvc/llvm-project?rev=123052&view=rev
Log:
Fixed an issue with the UnwindLLDB code where if there were inlined stack
frames, UnwindLLDB could create the incorrect RegisterContext for a given
stack frame because it was using the frame index (not the concrete frame
index). This was causing crashes when doing backtraces through the
SBFrame::GetFP() because a NULL register context was being returned for the
deepest stack frame.
Modified:
lldb/trunk/source/Plugins/Process/Utility/UnwindLLDB.cpp
Modified: lldb/trunk/source/Plugins/Process/Utility/UnwindLLDB.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/UnwindLLDB.cpp?rev=123052&r1=123051&r2=123052&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/UnwindLLDB.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/UnwindLLDB.cpp Fri Jan 7 19:53:06 2011
@@ -167,7 +167,7 @@
UnwindLLDB::CreateRegisterContextForFrame (StackFrame *frame)
{
lldb::RegisterContextSP reg_ctx_sp;
- uint32_t idx = frame->GetFrameIndex ();
+ uint32_t idx = frame->GetConcreteFrameIndex ();
if (idx == 0)
{
More information about the lldb-commits
mailing list