diff options
Diffstat (limited to 'share/pretty-printers')
-rw-r--r-- | share/pretty-printers/libstdcxx/gcc-4.8.3/__init__.py (renamed from share/pretty-printers/libstdcxx/gcc-4.8/__init__.py) | 0 | ||||
-rw-r--r-- | share/pretty-printers/libstdcxx/gcc-4.8.3/printers.py (renamed from share/pretty-printers/libstdcxx/gcc-4.8/printers.py) | 0 | ||||
-rw-r--r-- | share/pretty-printers/libstdcxx/gcc-4.9/printers.py | 7 |
3 files changed, 4 insertions, 3 deletions
diff --git a/share/pretty-printers/libstdcxx/gcc-4.8/__init__.py b/share/pretty-printers/libstdcxx/gcc-4.8.3/__init__.py index 8b13789..8b13789 100644 --- a/share/pretty-printers/libstdcxx/gcc-4.8/__init__.py +++ b/share/pretty-printers/libstdcxx/gcc-4.8.3/__init__.py diff --git a/share/pretty-printers/libstdcxx/gcc-4.8/printers.py b/share/pretty-printers/libstdcxx/gcc-4.8.3/printers.py index e6f2007..e6f2007 100644 --- a/share/pretty-printers/libstdcxx/gcc-4.8/printers.py +++ b/share/pretty-printers/libstdcxx/gcc-4.8.3/printers.py diff --git a/share/pretty-printers/libstdcxx/gcc-4.9/printers.py b/share/pretty-printers/libstdcxx/gcc-4.9/printers.py index 1fa08fb..65b8a93 100644 --- a/share/pretty-printers/libstdcxx/gcc-4.9/printers.py +++ b/share/pretty-printers/libstdcxx/gcc-4.9/printers.py @@ -443,11 +443,12 @@ class StdRbtreeIteratorPrinter: def __init__ (self, typename, val): self.val = val + valtype = self.val.type.template_argument(0).strip_typedefs() + nodetype = gdb.lookup_type('std::_Rb_tree_node<' + str(valtype) + '>') + self.link_type = nodetype.strip_typedefs().pointer() def to_string (self): - typename = str(self.val.type.strip_typedefs()) + '::_Link_type' - nodetype = gdb.lookup_type(typename).strip_typedefs() - node = self.val.cast(nodetype).dereference() + node = self.val['_M_node'].cast(self.link_type).dereference() return get_value_from_Rb_tree_node(node) class StdDebugIteratorPrinter: |