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
This commit is contained in:
Greg Clayton 2011-01-08 01:53:06 +00:00
parent 46779e1983
commit 671cabeeb5
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{