Skip to content

Commit

Permalink
Fixed amount of skipped frames on stacks with multiple language trans…
Browse files Browse the repository at this point in the history
…itions
  • Loading branch information
WheretIB committed May 23, 2020
1 parent 0545db2 commit 8e7e681
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions LuaDkmDebuggerComponent/LocalComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,8 @@ DkmStackWalkFrame GetLuaFunctionStackWalkFrame(ulong callInfoAddress, LuaFunctio
break;
}

stackContextData.seenFrames++;

luaFrames.Add(DkmStackWalkFrame.Create(stackContext.Thread, input.InstructionAddress, input.FrameBase, input.FrameSize, luaFrameFlags, $"[{currFunctionName} C function]", input.Registers, input.Annotations));

luaFrameFlags &= ~DkmStackWalkFrameFlags.TopFrame;
Expand Down Expand Up @@ -546,6 +548,8 @@ DkmStackWalkFrame GetLuaFunctionStackWalkFrame(ulong callInfoAddress, LuaFunctio
break;
}

stackContextData.seenFrames++;

luaFrames.Add(DkmStackWalkFrame.Create(stackContext.Thread, input.InstructionAddress, input.FrameBase, input.FrameSize, luaFrameFlags, $"[{currFunctionName} C function]", input.Registers, input.Annotations));

luaFrameFlags &= ~DkmStackWalkFrameFlags.TopFrame;
Expand All @@ -559,6 +563,8 @@ DkmStackWalkFrame GetLuaFunctionStackWalkFrame(ulong callInfoAddress, LuaFunctio
break;
}

stackContextData.seenFrames++;

luaFrames.Add(DkmStackWalkFrame.Create(stackContext.Thread, input.InstructionAddress, input.FrameBase, input.FrameSize, luaFrameFlags, $"[{currFunctionName} C closure]", input.Registers, input.Annotations));

luaFrameFlags &= ~DkmStackWalkFrameFlags.TopFrame;
Expand Down

0 comments on commit 8e7e681

Please sign in to comment.