Commit cc469f64 authored by hjk's avatar hjk
Browse files

Debugger: Robustify extraction of integral values using LLDB



Change-Id: Ieabad21e5e00bef12eb51046235890840b5a77a1
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 00199039
......@@ -509,13 +509,16 @@ class Dumper(DumperBase):
return int(value.GetLoadAddress())
def extractInt(self, address):
return int(self.createValue(address, self.intType()))
error = SBError()
return int(self.process.ReadUnsignedFromMemory(address, 4, error))
def extractInt64(self, address):
return int(self.createValue(address, self.int64Type()))
error = SBError()
return int(self.process.ReadUnsignedFromMemory(address, 8, error))
def extractByte(self, address):
return int(self.createValue(address, self.charType())) & 0xFF
error = SBError()
return int(self.process.ReadUnsignedFromMemory(address, 1, error) & 0xFF)
def handleCommand(self, command):
result = lldb.SBCommandReturnObject()
......
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