This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Python Pretty Printers get disabled on libstdc++ reload by GDB (PR libstdc++/68448)
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Siva Chandra <sivachandra at google dot com>, Jonathan Wakely <jwakely at redhat dot com>
- Date: Fri, 20 Nov 2015 18:28:40 +0100
- Subject: Re: [patch] Python Pretty Printers get disabled on libstdc++ reload by GDB (PR libstdc++/68448)
- Authentication-results: sourceware.org; auth=none
- References: <20151119202151 dot GA7640 at host1 dot jankratochvil dot net>
On Thu, 19 Nov 2015 21:21:51 +0100, Jan Kratochvil wrote:
> * python/hook.in: Call register_libstdcxx_printers.
> * python/libstdcxx/v6/__init__.py: Wrap it to
> register_libstdcxx_printers.
[...]
> -import libstdcxx.v6
> +# Call a function as a plain import would not execute body of the included file
> +# on repeated reloads of this object file.
> +from libstdcxx.v6 import register_libstdcxx_printers
> +register_libstdcxx_printers(gdb.current_objfile())
Jonathan Wakely mentioned:
[libstdc++] Refactor python/hook.in
https://gcc.gnu.org/ml/gcc-patches/2014-09/msg02518.html
From: Siva Chandra <sivachandra@google.com>
Message-ID: <CAGyQ6gyqMPZyJMN6326qtAzSTAAc1azodk5Jx3ZtMoFYM5puOQ@mail.gmail.com>
https://gcc.gnu.org/r215726
That change introduced this regression. This patch does not undo it, goal of
the patch by Siva Chandra - minimizing hook.in - stays achieved.
Jan