From 151b80ab7d75179f5c66aef0cf87832bf18d758c Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 13 Dec 2016 22:17:30 +0100 Subject: solenv: adapt SwPositionPrinter to BigPtrEntry renaming Change-Id: I096211333c563b501627fef0dbdec8c3c98d501a --- solenv/gdb/libreoffice/sw.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/solenv/gdb/libreoffice/sw.py b/solenv/gdb/libreoffice/sw.py index 8ccdbf483d21..88b8a9bf5ed9 100644 --- a/solenv/gdb/libreoffice/sw.py +++ b/solenv/gdb/libreoffice/sw.py @@ -19,8 +19,8 @@ class SwPositionPrinter(object): def to_string(self): node = self.value['nNode']['m_pNode'].dereference(); - block = node['pBlock'].dereference(); - nodeindex = block['nStart'] + node['nOffset'] + block = node['m_pBlock'].dereference(); + nodeindex = block['nStart'] + node['m_nOffset'] offset = self.value['nContent']['m_nIndex'] return "%s (node %d, offset %d)" % (self.typename, nodeindex, offset) @@ -33,8 +33,8 @@ class SwNodeIndexPrinter(object): def to_string(self): node = self.value['m_pNode'].dereference(); - block = node['pBlock'].dereference(); - nodeindex = block['nStart'] + node['nOffset'] + block = node['m_pBlock'].dereference(); + nodeindex = block['nStart'] + node['m_nOffset'] return "%s (node %d)" % (self.typename, nodeindex) class SwIndexPrinter(object): -- cgit