[Bug libstdc++/53477] pretty printer fails with: Python Exception list index out of range

2014-05-06 Thread jiyouguo at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53477

JiYouguo  changed:

   What|Removed |Added

 CC||jiyouguo at gmail dot com

--- Comment #18 from JiYouguo  ---

(In reply to Pawel Sikora from comment #17)
Would you mind telling how to patch a bug? I just can't find the file
simple.cc.
> pure gcc 4.9.0 20140106 still fails:
> 
> 
> Breakpoint 2, main () at pr53477.cpp:15
> (gdb) p wordBitsetMap
> $1 = std::map with 1 elementsTraceback (most recent call last):
>   File
> "/home/pawels/gcc/4.9/share/gcc-4.9.0/python/libstdcxx/v6/printers.py", line
> 438, in children
> rep_type = find_type(self.val.type, '_Rep_type')
>   File
> "/home/pawels/gcc/4.9/share/gcc-4.9.0/python/libstdcxx/v6/printers.py", line
> 54, in find_type
> raise ValueError, "Cannot find type %s::%s" % (str(orig), name)
> ValueError: Cannot find type const std::map int, std::set,
> std::__7::allocator >, std:
> :__7::less, std::__7::allocator const, std::set,
> std::__7::allocator > > > >
> , std::__7::less, std::__7::allocator int const, std::map std::__7::less, std::__7::al
> locator >, std::__7::less,
> std::__7::allocator int, std::__7::less, std::__7::al
> locator > > > > > > >::mapped_type::_Rep_type
> 
> 
> 
> patch propses in comment #10 works for me:
> 
> Breakpoint 2, main () at pr53477.cpp:15
> (gdb) p wordBitsetMap
> $1 = std::map with 1 elements = {
>   [3] = std::set with 2 elements = {
> [0] = 1,
> [1] = 5
>   }
> }


[Bug libstdc++/53477] pretty printer fails with: Python Exception list index out of range

2014-05-07 Thread jiyouguo at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53477

--- Comment #20 from JiYouguo  ---
Got it. Thank you very much.
:)


2014-05-06 17:11 GMT+08:00 redi at gcc dot gnu.org :

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53477
>
> --- Comment #19 from Jonathan Wakely  ---
> (In reply to JiYouguo from comment #18)
> > Would you mind telling how to patch a bug? I just can't find the file
> > simple.cc.
>
> simple.cc is a test file, patching that won't fix anything. The patch you
> want
> is probably comment 11
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
>