A gdb command to inspect the size of objects on the stack
A gdb command to inspect the size of objects on the stack.
gdb
Use gdb to navigate to a certain stack frame (run until your stack overflows or set a breakpoint somewhere). Then, simply run:
source stack-inspector.py stack-inspector