Make pwndbg.proc.exe actually work

pull/45/head
Zach Riggle 10 years ago
parent 18583a0f98
commit 2a7ac228ec

@ -44,8 +44,13 @@ class module(ModuleType):
@property
def exe(self):
auxv = pwndbg.auxv.get()
for obj in gdb.objfiles():
if obj.filename:
return obj.filename
break
if self.alive:
auxv = pwndbg.auxv.get()
return auxv['AT_EXECFN']
def OnlyWhenRunning(self, func):
@functools.wraps(func)
def wrapper(*a, **kw):

Loading…
Cancel
Save