A gdb command to inspect the size of objects on the stack.
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
Subscribe to Python Awesome
Get the latest posts delivered right to your inbox