Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Print variable with gdb??
@ 2005-03-30  9:19 JS
  2005-03-30  9:28 ` Russell Shaw
  0 siblings, 1 reply; 3+ messages in thread
From: JS @ 2005-03-30  9:19 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-30 10:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-30  9:19 Print variable with gdb?? JS
2005-03-30  9:28 ` Russell Shaw
2005-03-30 10:22   ` Dave Korn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox