This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
cli/2451: user-defined commands fail when testing for structure members that don't exist
- From: emf1123 at gmail dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 2 May 2008 15:33:09 -0000
- Subject: cli/2451: user-defined commands fail when testing for structure members that don't exist
- Reply-to: emf1123 at gmail dot com
>Number: 2451
>Category: cli
>Synopsis: user-defined commands fail when testing for structure members that don't exist
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri May 02 15:38:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: emf1123@gmail.com
>Release: gdb-6.8
>Organization:
>Environment:
>Description:
when debugging a program with singleton and polymorphic container data structures, you end up with variables similar to:
foo->container->value *OR* foo->value.
a user macro such as:
define mumble
if $arg0->container->value
print $arg0->container->value
else
print $arg0->value
end
end
then "mumble foo" fails if foo->container doesn't exist.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: