Python: gdb.Type.template_argument method issue

Phil Muldoon pmuldoon@redhat.com
Thu Sep 15 11:17:00 GMT 2011


<Paul_Koning@Dell.com> writes:

> The template_argument method assumes that all template arguments are types.  While that's the most common, other things are also found in the wild.  My C++ book says that the arguments can be integers, enums, pointers, references, or pointer-to-member constant values.  (GCC doesn't want to accept pointers and references, perhaps because it thinks they are relocatable.)

http://sourceware.org/bugzilla/show_bug.cgi?id=11060

> Any hints on where to look?

If that is the issue you are encountering, it looks like it has been
fixed in GDB, but you need a newer GCC to take advantage of it.

Cheers

Phil



More information about the Gdb mailing list