1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-26 04:52:53 +03:00

update gdb pretty printer for new String implementation

This commit is contained in:
Maxime Coste 2013-03-29 19:28:43 +01:00
parent 585e64fd10
commit 02826ff2ca

View File

@ -55,6 +55,7 @@ class BufferIterator:
else:
return "buffer<none>@(%s, %s)" % (self.val['m_coord']['line'], self.val['m_coord']['column'])
std_str = gdb.lookup_type("std::string")
class String:
""" Print a String"""
@ -62,7 +63,7 @@ class String:
self.val = val
def to_string(self):
return self.val["m_content"]
return self.val.cast(std_str)
class Option:
""" Print a Option"""