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.