From 02826ff2ca86c9cb5afdfd3f689c79136db52a44 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 29 Mar 2013 19:28:43 +0100 Subject: [PATCH] update gdb pretty printer for new String implementation --- gdb/kakoune.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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@(%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"""