This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cli/2451: user-defined commands fail when testing for structure members that don't exist


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]