diff options
| author | François Dumont <fdumont@gcc.gnu.org> | 2022-09-22 06:58:48 +0200 |
|---|---|---|
| committer | François Dumont <fdumont@gcc.gnu.org> | 2022-09-29 20:41:37 +0200 |
| commit | 13337ea9a1ccffc7d73a8ff87f5f186fd4d0d51c (patch) | |
| tree | 31bdb9a248638eaaad765f6b5da5bbaa64476e15 /libstdc++-v3/python | |
| parent | 61762797bac9cfe2e43d29d0d23ea0d02a9dd685 (diff) | |
libstdc++: [_GLIBCXX_INLINE_VERSION] Add gdb pretty print for _GLIBCXX_DEBUG
In _GLIBCXX_DEBUG mode containers are in std::__debug namespace but not template
parameters. In _GLIBCXX_INLINE_VERSION mode most types are in std::__8 namespace but
not std::__debug containers. We need to register specific type printers for this
combination.
libstdc++-v3/ChangeLog:
* python/libstdcxx/v6/printers.py (add_one_template_type_printer): Register
printer for types in std::__debug namespace with template parameters in std::__8
namespace.
Diffstat (limited to 'libstdc++-v3/python')
| -rw-r--r-- | libstdc++-v3/python/libstdcxx/v6/printers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index 5a3dcbd13f9..245b6e3dbcd 100644 --- a/libstdc++-v3/python/libstdcxx/v6/printers.py +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py @@ -2034,6 +2034,10 @@ def add_one_template_type_printer(obj, name, defargs): printer = TemplateTypePrinter(ns+name, defargs) gdb.types.register_type_printer(obj, printer) + # Add type printer for same type in debug namespace: + printer = TemplateTypePrinter('std::__debug::'+name, defargs) + gdb.types.register_type_printer(obj, printer) + class FilteringTypePrinter(object): r""" A type printer that uses typedef names for common template specializations. |
