Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Need help with GDB commands
@ 2001-07-03 12:01 Harald Fernengel
  2001-07-03 23:51 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Harald Fernengel @ 2001-07-03 12:01 UTC (permalink / raw)
  To: gdb

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


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

end of thread, other threads:[~2001-07-03 23:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-03 12:01 Need help with GDB commands Harald Fernengel
2001-07-03 23:51 ` Eli Zaretskii
2001-07-03 23:56   ` Eli Zaretskii

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