This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81932] Template arguments of type unsigned generate incorrect debugging information


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.)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]