This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Still cannot print variable
- From: Konstantin Karganov <kostik at ispras dot ru>
- To: JS <fedevaps at yahoo dot dk>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 15 Apr 2005 13:24:37 +0300
- Subject: Re: Still cannot print variable
- Organization: ISP RAS
- References: <d3o02u$t10$1@sea.gmane.org>
Hello JS,
> 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?
Because you are not yet debugging!
As described above, you started the debugger but not started the
program being debugged.
Try this:
gdb test
break main // to stop your program run
run
print d
--
Best regards,
Konstantin