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

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):
return int(value.GetLoadAddress())
def extractInt(self, address):
error = SBError()
error = lldb.SBError()
return int(self.process.ReadUnsignedFromMemory(address, 4, error))
def extractInt64(self, address):
error = SBError()
error = lldb.SBError()
return int(self.process.ReadUnsignedFromMemory(address, 8, error))
def extractByte(self, address):
error = SBError()
error = lldb.SBError()
return int(self.process.ReadUnsignedFromMemory(address, 1, error) & 0xFF)
def handleCommand(self, command):
......@@ -1130,13 +1130,13 @@ class Dumper(DumperBase):
with SubItem(self, child):
self.putItem(child)
def reportVariables(self, args = None):
def reportVariables(self, args = {}):
with self.outputLock:
sys.stdout.write("@\n")
self.reportVariablesHelper(args)
sys.stdout.write("@\n")
def reportVariablesHelper(self, args = None):
def reportVariablesHelper(self, args = {}):
frame = self.currentFrame()
if frame is None:
return
......
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