Don't run prompt_hook_on_stop if binary is not running (#39)

pull/45/head
Gulshan Singh 10 years ago committed by Zach Riggle
parent e510f75562
commit d326a75e6a

@ -139,8 +139,10 @@ def prompt_hook(*a):
pwndbg.events.after_reload() pwndbg.events.after_reload()
cur = new cur = new
if pwndbg.proc.alive:
prompt_hook_on_stop(*a) prompt_hook_on_stop(*a)
@pwndbg.memoize.reset_on_stop @pwndbg.memoize.reset_on_stop
def prompt_hook_on_stop(*a): def prompt_hook_on_stop(*a):
with pwndbg.stdio.stdio: with pwndbg.stdio.stdio:

Loading…
Cancel
Save