Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Still cannot print variable
@ 2005-04-15  9:09 JS
  2005-04-15  9:20 ` Konstantin Karganov
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: JS @ 2005-04-15  9:09 UTC (permalink / raw)
  To: gdb

I am still have problems printing a variable. I have this code in a file
called test.:

int main()
{

        int d = 119;

        return(0);

}

I then compile it like this:

        gcc -g -Wall -o test test.c

(I have also tried with option -O0 but that changes nothing).

I run "gdb test" followed by "print d" and then I get this error:

No symbol "d" in current context.

Why is it not possible to see the contents of "d" when debugging?



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

end of thread, other threads:[~2005-04-15 12:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-15  9:09 Still cannot print variable JS
2005-04-15  9:20 ` Konstantin Karganov
2005-04-15 10:02   ` JS
2005-04-15 10:11     ` Re[2]: " Konstantin Karganov
2005-04-15 10:22       ` JS
2005-04-15  9:27 ` Joakim Hove
2005-04-15  9:30 ` Eli Zaretskii
2005-04-15 11:55 ` Bob Rossi
2005-04-15 12:01   ` Dave Korn
2005-04-15 12:06   ` Daniel Jacobowitz

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