Add new script to compare the stack layout (#1112)

* Add new script to debug the stack layout

* fix small error in script

---------

Co-authored-by: jonschz <jonschz@users.noreply.github.com>
This commit is contained in:
jonschz
2024-10-13 23:31:15 +02:00
committed by GitHub
parent 974cd7ce7c
commit 8446a7ffa1
5 changed files with 377 additions and 4 deletions

View File

@@ -96,7 +96,8 @@ class PdbFunctionExtractor:
stack_symbols: list[CppStackOrRegisterSymbol] = []
# for some unexplained reason, the reported stack is offset by 4 when this flag is set
# for some unexplained reason, the reported stack is offset by 4 when this flag is set.
# Note that this affects the arguments (ebp + ...) but not the function stack (ebp - ...)
stack_offset_delta = -4 if fn.frame_pointer_present else 0
for symbol in fn.stack_symbols: