> For the complete documentation index, see [llms.txt](https://cajac.gitbook.io/ctf-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cajac.gitbook.io/ctf-notes/rev-eng/debuggers/gdb-scripting.md).

# gdb scripting

Run commands after breakpoint

Run commands with -ex param

Run script file with -x param

## Resources

gdb - Linux manual page:  <https://man7.org/linux/man-pages/man1/gdb.1.html>

GDB (The GNU Project Debugger) - Documentation: <https://sourceware.org/gdb/documentation/>

GDB (The GNU Project Debugger) - Homepage: [https://sourceware.o](https://sourceware.org/gdb/)
