This is the mail archive of the
mailing list for the GDB project.
Re: Python: gdb.Type.template_argument method issue
> 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.)
> 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.