[Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 30 08:19:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932
--- Comment #22 from Martin Sebor <msebor at gcc dot gnu.org> ---
Paul, have you considered determining the type of the specialization of the
template from an object of one instead of hardcoding its name?
I.e., instead of calling gdb.lookup_type("TreeVector<Pod, 2u>::Tree") in your
Python printer script, use something like gdb.lookup_type(str(vector.type) %
"::Tree")? (I couldn't get this to work but I could have done something
wrong.)
More information about the Gcc-bugs
mailing list