Commit 4deadb5f authored by Christian Stenger's avatar Christian Stenger Committed by hjk
Browse files

Dumper: Test: Fix execution of dumper tests for LLDB



Change-Id: Id4f437fe17d7989c15ad223c20605773411a1142
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 28c06b5b
...@@ -509,15 +509,15 @@ class Dumper(DumperBase): ...@@ -509,15 +509,15 @@ class Dumper(DumperBase):
return int(value.GetLoadAddress()) return int(value.GetLoadAddress())
def extractInt(self, address): def extractInt(self, address):
error = SBError() error = lldb.SBError()
return int(self.process.ReadUnsignedFromMemory(address, 4, error)) return int(self.process.ReadUnsignedFromMemory(address, 4, error))
def extractInt64(self, address): def extractInt64(self, address):
error = SBError() error = lldb.SBError()
return int(self.process.ReadUnsignedFromMemory(address, 8, error)) return int(self.process.ReadUnsignedFromMemory(address, 8, error))
def extractByte(self, address): def extractByte(self, address):
error = SBError() error = lldb.SBError()
return int(self.process.ReadUnsignedFromMemory(address, 1, error) & 0xFF) return int(self.process.ReadUnsignedFromMemory(address, 1, error) & 0xFF)
def handleCommand(self, command): def handleCommand(self, command):
...@@ -1130,13 +1130,13 @@ class Dumper(DumperBase): ...@@ -1130,13 +1130,13 @@ class Dumper(DumperBase):
with SubItem(self, child): with SubItem(self, child):
self.putItem(child) self.putItem(child)
def reportVariables(self, args = None): def reportVariables(self, args = {}):
with self.outputLock: with self.outputLock:
sys.stdout.write("@\n") sys.stdout.write("@\n")
self.reportVariablesHelper(args) self.reportVariablesHelper(args)
sys.stdout.write("@\n") sys.stdout.write("@\n")
def reportVariablesHelper(self, args = None): def reportVariablesHelper(self, args = {}):
frame = self.currentFrame() frame = self.currentFrame()
if frame is None: if frame is None:
return return
......
Supports Markdown
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