gdb/printers: fix view offsets to start from 0
This commit is contained in:
parent
37d68d5586
commit
499fa4d190
@ -53,10 +53,12 @@ class ViewPrinter(object):
|
||||
raise StopIteration
|
||||
|
||||
val = self.cursor.dereference()
|
||||
res = ("[%d]" % self.index, val)
|
||||
|
||||
self.cursor = self.cursor + 1
|
||||
self.index = self.index + 1
|
||||
|
||||
return ("[%d]" % self.index, val)
|
||||
return res
|
||||
|
||||
def children(self):
|
||||
return self._iterator(
|
||||
|
Loading…
Reference in New Issue
Block a user