forked from OSchip/llvm-project
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:
parent
46779e1983
commit
671cabeeb5
|
@ -167,7 +167,7 @@ lldb::RegisterContextSP
|
||||||
UnwindLLDB::CreateRegisterContextForFrame (StackFrame *frame)
|
UnwindLLDB::CreateRegisterContextForFrame (StackFrame *frame)
|
||||||
{
|
{
|
||||||
lldb::RegisterContextSP reg_ctx_sp;
|
lldb::RegisterContextSP reg_ctx_sp;
|
||||||
uint32_t idx = frame->GetFrameIndex ();
|
uint32_t idx = frame->GetConcreteFrameIndex ();
|
||||||
|
|
||||||
if (idx == 0)
|
if (idx == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue