Skip to content

Commit

Permalink
Merge pull request kstenerud#327 from JunyiXie/master
Browse files Browse the repository at this point in the history
fix lr causes the call stack inaccurate
  • Loading branch information
kstenerud authored May 8, 2019
2 parents 0b883ae + 712f728 commit 412a325
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Source/KSCrash/Recording/Tools/KSStackCursor_MachineContext.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,6 @@ static bool advanceCursor(KSStackCursor *cursor)
goto successfulExit;
}

if(context->linkRegister == 0 && !context->isPastFramePointer)
{
// Link register, if available, is the second address in the trace.
context->linkRegister = kscpu_linkRegister(context->machineContext);
if(context->linkRegister != 0)
{
nextAddress = context->linkRegister;
goto successfulExit;
}
}

if(context->currentFrame.previous == NULL)
{
if(context->isPastFramePointer)
Expand Down

0 comments on commit 412a325

Please sign in to comment.