From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Fernengel To: gdb@sources.redhat.com Subject: Need help with GDB commands Date: Tue, 03 Jul 2001 12:01:00 -0000 Message-id: <20010703185922Z114582-2795+260@trolltech.com> X-SW-Source: 2001-07/msg00012.html 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