This is the mail archive of the gcc-patches@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]

Re: Committed: gdbhooks.py: reorganization to support regex-matching and typedefs


>>>>> "David" == David Malcolm <dmalcolm@redhat.com> writes:

David> I've committed the following to trunk as r205085, as a mixture of
David> enabling work towards gdb being able to print vec<>, and to fix issues
David> where the string-matching logic got confused by typedefs (done in a
David> rather crude way, by supporting multiple strings in the match, but it
David> works).

FWIW for the libstdc++ printers what we do is strip typedefs and
qualifiers to find the type whose name we want to match:

        # Get the unqualified type, stripped of typedefs.
        type = type.unqualified ().strip_typedefs ()

Tom


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