[Ltrace-devel] Getting prototypes from debug information
Mark Wielaard
mjw at redhat.com
Fri Apr 18 13:25:45 UTC 2014
On Fri, 2014-04-18 at 15:19 +0200, Petr Machata wrote:
> > - in getEnum, you assume that the underlying type is INT. That may not
> > be the case. In C++11, you can actually choose the underlying enum
> > type. DW_TAG_enumeration_type's DW_AT_type (if present) will point to
> > that underlying type.
>
> I looked into this, and GCC currently doesn't seem to emit DW_AT_type
> for enums with specified base.
Coincidentally I did submit a patch for that some weeks ago, but I was
too late for gcc 4.9 so it is still pending. I just pinged it:
http://gcc.gnu.org/ml/gcc-patches/2014-04/msg00713.html
Tom wrote a patch for GDB to take advantage of it:
https://sourceware.org/ml/gdb-patches/2014-03/msg00703.html
Cheers,
Mark
More information about the Ltrace-devel
mailing list