From 9effba2c667cba653e7c8bd78cc86b1d12a10c9b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 26 Nov 2012 18:50:09 +0100 Subject: [PATCH] fix BufferIterator gdb pretty printer --- gdb/kakoune.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/kakoune.py b/gdb/kakoune.py index 40713e9f..90a363df 100644 --- a/gdb/kakoune.py +++ b/gdb/kakoune.py @@ -50,8 +50,8 @@ class BufferIterator: self.val = val def to_string(self): - if self.val['m_buffer'] != 0: - return "buffer<%s>@(%s, %s)" % (self.val['m_buffer'].dereference()['m_name'], self.val['m_coord']['line'], self.val['m_coord']['column']) + if self.val['m_buffer']['m_ptr'] != 0: + return "buffer<%s>@(%s, %s)" % (self.val['m_buffer']['m_ptr'].dereference()['m_name'], self.val['m_coord']['line'], self.val['m_coord']['column']) else: return "buffer@(%s, %s)" % (self.val['m_coord']['line'], self.val['m_coord']['column'])