summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Utility/UnwindLLDB.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-01-08 01:53:06 +0000
committerGreg Clayton <gclayton@apple.com>2011-01-08 01:53:06 +0000
commit671cabeeb5e80036ad66c3129aa2a4d9cc599b43 (patch)
tree884ea0eaf29c33c537ae6d8dcaf0c21ac5b5d492 /lldb/source/Plugins/Process/Utility/UnwindLLDB.cpp
parent46779e1983c68a362292d347d688402eccf85862 (diff)
downloadbcm5719-llvm-671cabeeb5e80036ad66c3129aa2a4d9cc599b43.tar.gz
bcm5719-llvm-671cabeeb5e80036ad66c3129aa2a4d9cc599b43.zip
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. llvm-svn: 123052
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/UnwindLLDB.cpp')
-rw-r--r--lldb/source/Plugins/Process/Utility/UnwindLLDB.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Utility/UnwindLLDB.cpp b/lldb/source/Plugins/Process/Utility/UnwindLLDB.cpp
index a1b030b0eac..75f92bbef28 100644
--- a/lldb/source/Plugins/Process/Utility/UnwindLLDB.cpp
+++ b/lldb/source/Plugins/Process/Utility/UnwindLLDB.cpp
@@ -167,7 +167,7 @@ lldb::RegisterContextSP
UnwindLLDB::CreateRegisterContextForFrame (StackFrame *frame)
{
lldb::RegisterContextSP reg_ctx_sp;
- uint32_t idx = frame->GetFrameIndex ();
+ uint32_t idx = frame->GetConcreteFrameIndex ();
if (idx == 0)
{
OpenPOWER on IntegriCloud