This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: Correct output of debug_tree for identifiers


Ian Lance Taylor <ian@airs.com> writes:

| When I use gdb on cc1plus, and I use the pt command from .gdbinit to
| print an identifier, it prints stuff like:
| 
|  <identifier_node 0xb7d0cc98 Sbindings <(nil)>local bindings <(nil)>>
| 
| To my formerly untutored eye, this looks like the variable Sbindings,
| but it is really the variable S, with no bindings.
| 
| This patch makes the above print like this:
| 
|  <identifier_node 0xb7d0cc98 S bindings <(nil)> local bindings <(nil)>>
| 
| which I think is preferable.
| 
| Tested with bootstrap and g++ testsuite run on i686-pc-linux-gnu.  OK
| for mainline?

YEs.

-- Gaby


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