This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: GDB and typedefs
On Wed, Feb 04, 2009 at 08:29:25AM -0800, Jim Blandy wrote:
> When the DWARF 2 reader processes a DW_TAG_typedef die, it creates a
> symbol whose name is the typedef name (jsval), but whose type is the
> definition type (jsword). It will later create a typedef type named
> jsval, but that's not what gets associated with the jsval symbol. I
> haven't written a patch for this, because I'm afraid it will change
> the behavior of commands like 'whatis' ('whatis jsval' does exactly
> one level of typedef expansion, which is kind of useful, and I bet the
> test suite knows this) and I don't have the time right now to fix that
> up as well.
FWIW, that does sound like the right place to change it.
--
Daniel Jacobowitz
CodeSourcery