if with_gdb:
self.port = unused_port()
cmd += ['--gdb-port', str(self.port)]
+ cmd.append("-m32")
cmd.append('pk')
if binary:
cmd.append(binary)
value = int(output.split('=')[-1].strip(), 0)
return value
+ def p_string(self, obj):
+ output = self.command("p %s" % obj)
+ value = shlex.split(output.split('=')[-1].strip())[1]
+ return value
+
def stepi(self):
output = self.command("stepi")
assert "Cannot" not in output