This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/45403] broken python pretty printer for unordered_map.



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]