This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Need help with GDB commands
- To: gdb at sources dot redhat dot com
- Subject: Need help with GDB commands
- From: Harald Fernengel <harald at trolltech dot com>
- Date: Tue, 3 Jul 2001 21:01:53 +0200
- Organization: TrollTech
Hello,
Is there a way to determine whether Class x has a member variable y at GDB
runtime?
I want to create a script like:
define printmember
if exists (x.y) output x.y
.....
end
In other words: How can I get rid of that "No symbol y in current context"
and just output the right member?
Harry