diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-02 01:47:17 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-02 01:47:17 +0000 |
commit | bf1e1356d2334a5484d2ff081b27528f40a03397 (patch) | |
tree | ff3b54cba8f88f4c246a412c17474d414d8198bd /libstdc++-v3/python | |
parent | 411bb74ec51b3d202d66652c94fd0f9bb1e188fd (diff) | |
download | gcc-bf1e1356d2334a5484d2ff081b27528f40a03397.tar.gz |
* python/libstdcxx/v6/printers.py (Tr1HashtableIterator): Update.
(StdForwardListPrinter): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193087 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/python')
-rw-r--r-- | libstdc++-v3/python/libstdcxx/v6/printers.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index 07a5ee62f35..5197284b017 100644 --- a/libstdc++-v3/python/libstdcxx/v6/printers.py +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py @@ -612,7 +612,7 @@ class StdStringPrinter: class Tr1HashtableIterator: def __init__ (self, hash): - self.node = hash['_M_before_begin']['_M_nxt'] + self.node = hash['_M_bbegin']['_M_node']['_M_nxt'] self.node_type = find_type(hash.type, '__node_type').pointer() def __iter__ (self): @@ -707,7 +707,9 @@ class StdForwardListPrinter: self.base = elt['_M_next'] count = self.count self.count = self.count + 1 - return ('[%d]' % count, elt['_M_value']) + valptr = elt['_M_storage'].address + valptr = valptr.cast(elt.type.template_argument(0).pointer()) + return ('[%d]' % count, valptr.dereference()) def __init__(self, typename, val): self.val = val |