From d27791867025bff35287ce25b57eebaac4a01c03 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Fri, 24 Mar 2017 19:39:56 +0100 Subject: [PATCH] require running process for retaddr and procinfo cmd (#191) --- pwndbg/commands/procinfo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pwndbg/commands/procinfo.py b/pwndbg/commands/procinfo.py index 791b27209..5c2c7258c 100644 --- a/pwndbg/commands/procinfo.py +++ b/pwndbg/commands/procinfo.py @@ -194,10 +194,12 @@ class Process(): return tuple(result) @pwndbg.commands.Command +@pwndbg.commands.OnlyWhenRunning def pid(): print(pwndbg.proc.pid) @pwndbg.commands.Command +@pwndbg.commands.OnlyWhenRunning def procinfo(): """ Display information about the running process.