Commit fdc5ac7f authored by hjk's avatar hjk
Browse files

debugger: fix array dumper

parent 17b5354e
...@@ -1373,8 +1373,8 @@ class Dumper: ...@@ -1373,8 +1373,8 @@ class Dumper:
charptr = gdb.lookup_type("unsigned char").pointer() charptr = gdb.lookup_type("unsigned char").pointer()
addr1 = (baseptr+1).cast(charptr) addr1 = (baseptr+1).cast(charptr)
addr0 = baseptr.cast(charptr) addr0 = baseptr.cast(charptr)
self.putField("addrbase", cleanAddress(addr0)) self.putField("addrbase" % cleanAddress(addr0))
self.putField("addrstep", addr1 - addr0) self.putField("addrstep" % (addr1 - addr0))
innerType = None innerType = None
if len(fields) == 1 and fields[0].name is None: if len(fields) == 1 and fields[0].name is None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment