1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-22 05:03:56 +03:00

Fix gdb String pretty printer

This commit is contained in:
Maxime Coste 2015-03-24 13:40:34 +00:00
parent d8fb623367
commit 7bc923658e

View File

@ -62,8 +62,7 @@ class String:
self.val = val
def to_string(self):
std_str = gdb.lookup_type("std::string")
return self.val.cast(std_str)
return "%s" % (self.val['m_data'])
class StringView:
""" Print a StringView"""