Fix gdb String pretty printer
This commit is contained in:
parent
d8fb623367
commit
7bc923658e
|
@ -62,8 +62,7 @@ class String:
|
||||||
self.val = val
|
self.val = val
|
||||||
|
|
||||||
def to_string(self):
|
def to_string(self):
|
||||||
std_str = gdb.lookup_type("std::string")
|
return "%s" % (self.val['m_data'])
|
||||||
return self.val.cast(std_str)
|
|
||||||
|
|
||||||
class StringView:
|
class StringView:
|
||||||
""" Print a StringView"""
|
""" Print a StringView"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user