diff options
author | Jan Kratochvil <jkratoch@gcc.gnu.org> | 2015-11-20 19:00:51 +0000 |
---|---|---|
committer | Jan Kratochvil <jkratoch@gcc.gnu.org> | 2015-11-20 19:00:51 +0000 |
commit | cdccafd922b36a07fe0f4118c07293fd595ffd3e (patch) | |
tree | 503821057663083e83da3da89562fe800d770075 /libstdc++-v3/python/hook.in | |
parent | eed905e9f236f7b7eaba946232851de9d4b27de8 (diff) | |
download | gcc-cdccafd922b36a07fe0f4118c07293fd595ffd3e.tar.gz |
re PR libstdc++/68448 (Python Pretty Printers get disabled on libstdc++ reload by GDB)
PR libstdc++/68448
* python/hook.in: Call register_libstdcxx_printers.
* python/libstdcxx/v6/__init__.py: Wrap it to
register_libstdcxx_printers.
From-SVN: r230669
Diffstat (limited to 'libstdc++-v3/python/hook.in')
-rw-r--r-- | libstdc++-v3/python/hook.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libstdc++-v3/python/hook.in b/libstdc++-v3/python/hook.in index 07fe4c62417..703b6a74488 100644 --- a/libstdc++-v3/python/hook.in +++ b/libstdc++-v3/python/hook.in @@ -55,4 +55,7 @@ if gdb.current_objfile () is not None: if not dir_ in sys.path: sys.path.insert(0, dir_) -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()) |