🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

GDB Core dump: Recover argc argv values after crash

Started by
0 comments, last by Bregma 12 years, 10 months ago
[font=Arial,]

Is possible to recover the exact values of argv and argc parameters of a main after the application crashed?

I need to use only the application core-dump and gdb debugger on Linux.

[/font]

Advertisement
Um, just walk up the stack and print the contents of argc and argv? Use the 'up' command to go up the stack and 'print' to print variables.

Stephen M. Webb
Professional Free Software Developer

This topic is closed to new replies.

Advertisement