This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Add libstdc++ type printers for class templates
- From: Tom Tromey <tromey at redhat dot com>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, pmuldoon at redhat dot com
- Date: Mon, 14 Jul 2014 14:11:31 -0600
- Subject: Re: [patch] Add libstdc++ type printers for class templates
- Authentication-results: sourceware.org; auth=none
- References: <20140714142159 dot GF4871 at redhat dot com> <20140714192206 dot GG4871 at redhat dot com>
>>>>> "Jonathan" == Jonathan Wakely <jwakely@redhat.com> writes:
Jonathan> I forgot to say that with these type recognizers we might want to
Jonathan> revisit the output of the existing printers for the containers, so
Jonathan> that instead of:
Jonathan> std::map with 3 elements = { ... }
Jonathan> GDB could print the map type:
Jonathan> std::map<int, int> with 3 elements = { ... }
I think the reason for the brevity right now is just that, even eliding
the defaults, the type names can get rather long. It's not absurd
though, just maybe not always desirable. One possible approach would be
to make a new gdb.Parameter in the libstdc++ code to control it.
Tom