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 <[email protected]>
Message-ID:
<cagyq6gyqmpzyjmn6326qtazstaac1azodk5jx3ztmofym5p...@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