Commit c6faedf1 authored by Eike Ziller's avatar Eike Ziller Committed by hjk
Browse files

debugger: generalize is32bit() through ptrSize()



That also makes lldb dumper actually test for bitness instead of
assuming 64bit

Change-Id: I6207bac04817e1f4700247dc00d2dfdace1e5100
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent bccc352b
......@@ -261,6 +261,9 @@ class DumperBase:
self.isGdb = False
self.isLldb = False
def is32bit(self):
return self.ptrSize() == 4
def computeLimit(self, size, limit):
if limit is None:
return size
......
......@@ -1230,9 +1230,6 @@ class Dumper(DumperBase):
def ptrSize(self):
return self.lookupType('void*').sizeof
def is32bit(self):
return self.lookupType('void*').sizeof == 4
def createValue(self, address, referencedType):
try:
return gdb.Value(address).cast(referencedType.pointer()).dereference()
......
......@@ -494,9 +494,6 @@ class Dumper(DumperBase):
break
return qqVersion
def is32bit(self):
return False
def intSize(self):
return 4
......
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