Do not forget self (again) (#854)

This commit is contained in:
cclauss 2018-04-03 22:47:47 +02:00 committed by Yan Ivnitskiy
parent bda9c091b5
commit af779d8baa

View File

@ -40,7 +40,7 @@ class Gdb(subprocess.Popen):
val = self.correspond('p /x %s\n'%reg.lower()).split("0x")[-1]
return long(val.split("\n")[0],16)
def setR(reg, value):
def setR(self, reg, value):
self.correspond('set $%s = %s\n'%(reg.lower(), int(value)))
def setByte(self, m, value):
self.correspond('set *(char*)(%s) = %s\n'%(m,value))