From 3e8ff210315d3eeecb3f4e92e5b57595a26405d0 Mon Sep 17 00:00:00 2001 From: k4lizen <124312252+k4lizen@users.noreply.github.com> Date: Wed, 30 Apr 2025 17:51:24 +0200 Subject: [PATCH] Add tip about !cmd syntax in gdb (#2936) * add !cmd tip * reword tip Co-authored-by: Disconnect3d --------- Co-authored-by: Disconnect3d --- pwndbg/lib/tips.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pwndbg/lib/tips.py b/pwndbg/lib/tips.py index aae829245..1ec0fd41e 100644 --- a/pwndbg/lib/tips.py +++ b/pwndbg/lib/tips.py @@ -16,6 +16,7 @@ GDB_TIPS: List[str] = [ "If you have debugging symbols the `info args` command shows current frame's function arguments (use `up` and `down` to switch between frames)", 'Calling functions like `call (void)puts("hello world")` will run all other target threads for the time the function runs. Use `set scheduler-locking on` to lock the execution to current thread when calling functions', "Use the `pipe | ` command to pass output of a GDB/Pwndbg command to a shell program, e.g. `pipe elfsections | grep bss`. This can also be shortened to: `| | `", + "Prefixing a command with `!` in GDB will execute it as a shell command, e.g.: `!ls` or `!cat flag.txt`", ] # Pwndbg specific tips