GDB Core dump: Recover argc argv values after crash

Started by
0 comments, last by Bregma 12 years, 8 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