This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: RFC: Print the type of a C value in one more case


On Tue, Mar 29, 2005 at 12:13:14AM -0500, Paul Schlie wrote:
> >> Daniel Jacobowitz wrote:
> >> This is something that constantly bugs me when debugging GCC.  GCC has
> >> typedefs for "tree" and "rtx" which are both pointers to structs.  When
> >> you print either, you just get "$1 = 0xbf000100" without any indication
> >> of the type of the variable; but normally GDB prints types for pointers.
> >> This comes from a missing check_typedef in c_value_print.
> >> 
> >> There were a couple of ways to fix it; I chose to print the typedef rather
> >> than what the typedef pointed to.  The only difference in the testsuite is
> >> in one objc test, which perfectly illustrates the desired change:
> >> 
> >> -$1 = 0x0
> >> +$1 = (id) 0x0
> >> ...
> 
> - was there ever a conclusion on this item, it certainly seems helpful?

I never got around to committing it.  Since no one disliked it, I've
checked this in now.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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