summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-03-29 19:28:43 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-03-29 19:35:48 +0100
commit02826ff2ca86c9cb5afdfd3f689c79136db52a44 (patch)
tree1c4055de8bad374d47c7ba5a4420e45d76ad5458 /gdb
parent585e64fd10066b4163aa0747d78240169d907098 (diff)
update gdb pretty printer for new String implementation
Diffstat (limited to 'gdb')
-rw-r--r--gdb/kakoune.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/kakoune.py b/gdb/kakoune.py
index 90a363df..7486a7fa 100644
--- a/gdb/kakoune.py
+++ b/gdb/kakoune.py
@@ -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"""