This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Print variable with gdb??
- From: JS <fedevaps at yahoo dot dk>
- To: gdb at sources dot redhat dot com
- Date: Wed, 30 Mar 2005 11:19:02 +0200
- Subject: Print variable with gdb??
- Reply-to: fedevaps at yahoo dot dk
I have:
int p = 5;
when I debug my code I would like to get a print of p's value therefore I
start gdb and type:
print p
but then I get an error that the variable does not exists!
Hope someone can help!
JS