stack-inspector icon indicating copy to clipboard operation
stack-inspector copied to clipboard

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