mirror of https://github.com/pwndbg/pwndbg
Python3
This commit is contained in:
parent
90726f70ca
commit
ca6d30fa07
|
@ -28,7 +28,7 @@ def procinfo():
|
|||
Display information about the running process.
|
||||
"""
|
||||
if not psutil:
|
||||
print "psutil required but not installed"
|
||||
print("psutil required but not installed")
|
||||
return
|
||||
|
||||
exe = repr(str(pwndbg.auxv.get()['AT_EXECFN']))
|
||||
|
|
|
@ -23,9 +23,11 @@ try:
|
|||
except:
|
||||
import xmlrpclib
|
||||
|
||||
|
||||
xmlrpclib.Marshaller.dispatch[int] = lambda _, v, w: w("<value><i8>%d</i8></value>" % v)
|
||||
|
||||
if pwndbg.compat.python2:
|
||||
xmlrpclib.Marshaller.dispatch[type(0L)] = lambda _, v, w: w("<value><i8>%d</i8></value>" % v)
|
||||
xmlrpclib.Marshaller.dispatch[type(0)] = lambda _, v, w: w("<value><i8>%d</i8></value>" % v)
|
||||
xmlrpclib.Marshaller.dispatch[long] = lambda _, v, w: w("<value><i8>%d</i8></value>" % v)
|
||||
|
||||
|
||||
_ida = None
|
||||
|
|
Loading…
Reference in New Issue