This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Make pretty printers version namespace dependant
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: François Dumont <frs dot dumont at gmail dot com>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 28 Apr 2017 12:38:03 +0100
- Subject: Re: Make pretty printers version namespace dependant
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jwakely at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 7D42B7AEB6
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 7D42B7AEB6
- References: <7e10edf1-2395-3a91-25cf-9382dbe73a0f@gmail.com> <20170427183235.GM5109@redhat.com> <7df48c7b-a23b-d5bc-c6da-34b306e05e1c@gmail.com> <20170428084101.GN5109@redhat.com>
On 28/04/17 09:41 +0100, Jonathan Wakely wrote:
On 27/04/17 21:27 +0200, François Dumont wrote:
Oh, I thought it was obviously better to not register useless
Printers. But if you need a bug report or an explicit test showing
that it is better then I don't have it. Maybe a gdb guy could tell
us if it worth it.
I think I've asked t he GDB guys before about the overhead of
printers, but I'll check with them. I don't think having extra
printers registered is a problem (GDB is usually an interactive
program, so the time it takes to find a printer is not significant on
"human scales").
There's a downside to this change as well:
Currently you can take the libstdc++-*-gdb.py and printers.py files
and use them with any libstdc++.so, e.g. you could take the latest
printers from GCC trunk, and use it with an older libstdc++.so
installed on your system.
If we make this change, that will only work if the gdb.py file matches
the same configuration as the libstdc++.so.* file your program is
linked to. This isn't a serious problem, because the gdb.py file
doesn't change often, and you could still take a new printers.py file.
It's something to consider though.