This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/53477] pretty printer fails with: Python Exception <type 'exceptions.IndexError'> list index out of range
- From: "asmwarrior at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 03 Jun 2013 04:05:47 +0000
- Subject: [Bug libstdc++/53477] pretty printer fails with: Python Exception <type 'exceptions.IndexError'> list index out of range
- Auto-submitted: auto-generated
- References: <bug-53477-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53477
--- Comment #5 from asmwarrior <asmwarrior at gmail dot com> ---
> p /r m_Headers
[debug]> p /r m_Headers
[debug]$5 = (StringSet &) @0x116d0bc4: {_M_t = {_M_impl =
{<std::allocator<std::_Rb_tree_node<wxString> >> =
{<__gnu_cxx::new_allocator<std::_Rb_tree_node<wxString> >> = {<No data
fields>}, <No data fields>}, _M_key_compare = {<std::binary_function<wxString,
wxString, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color
= std::_S_red, _M_parent = 0x116d2d28, _M_left = 0x116d2d28, _M_right =
0x116d2d28}, _M_node_count = 1}}}
[debug]>>>>>>cb_gdb:
When I see the E:\code\gcc\PCXMinGW463\bin\libstdcxx\v6\printers.py, I see in
the line: 476
def children (self):
rep_type = find_type(self.val.type, '_Rep_type')
node = find_type(rep_type, '_Link_type')
node = node.strip_typedefs()
return self._iter (RbtreeIterator (self.val), node)
The variable is declared as: StringSet& m_Headers;
and the StringSet is defined as: typedef std::set<wxString> StringSet;
Hope those information can help to solve this bug.