/ Command-line Tools

A gdb command to inspect the size of objects on the stack

A gdb command to inspect the size of objects on the stack

stack-inspector

A gdb command to inspect the size of objects on the stack.

how to

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

GitHub