[patch] Python Pretty Printers get disabled on libstdc++ reload by GDB (PR libstdc++/68448)

Jonathan Wakely jwakely@redhat.com
Fri Nov 20 17:40:00 GMT 2015


On 20/11/15 18:28 +0100, Jan Kratochvil wrote:
>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.

OK, thanks for checking, Jan.

The patch is OK for trunk and gcc-5-branch.



More information about the Libstdc++ mailing list