When you reach the bottom of the inlined stack, don't say you can do a virtual step.

llvm-svn: 163341
This commit is contained in:
Jim Ingham 2012-09-06 19:24:57 +00:00
parent 46ef1807fc
commit 9786eeeb6f
1 changed files with 6 additions and 1 deletions

View File

@ -189,8 +189,10 @@ StackFrameList::DecrementCurrentInlinedDepth ()
if (current_inlined_depth != UINT32_MAX) if (current_inlined_depth != UINT32_MAX)
{ {
if (current_inlined_depth > 0) if (current_inlined_depth > 0)
{
m_current_inlined_depth--; m_current_inlined_depth--;
return true; return true;
}
} }
} }
return false; return false;
@ -318,6 +320,9 @@ StackFrameList::GetFramesUpTo(uint32_t end_idx)
{ {
StackFrameList *prev_frames = m_prev_frames_sp.get(); StackFrameList *prev_frames = m_prev_frames_sp.get();
StackFrameList *curr_frames = this; StackFrameList *curr_frames = this;
curr_frames->m_current_inlined_depth = prev_frames->m_current_inlined_depth;
curr_frames->m_current_inlined_pc = prev_frames->m_current_inlined_pc;
#if defined (DEBUG_STACK_FRAMES) #if defined (DEBUG_STACK_FRAMES)
s.PutCString("\nprev_frames:\n"); s.PutCString("\nprev_frames:\n");