This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/45403] broken python pretty printer for unordered_map.
- From: "redi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2010 14:12:11 -0000
- Subject: [Bug libstdc++/45403] broken python pretty printer for unordered_map.
- References: <bug-45403-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from redi at gcc dot gnu dot org 2010-08-25 14:12 -------
It's nothing to do with unordered_map, it's std::string, and it fails because
lazy_string was added in GDB 7.1
we can probably do something like
if (gdb.VERSION == '7.0'):
return '"' + self.val['_M_dataplus']['_M_p'].string (length = len)
+ '"'
return self.val['_M_dataplus']['_M_p'].lazy_string (length = len)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45403