Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-12 00:18:03 +00:00
parent 4ed84edbe1
commit ffbd8c31db
29 changed files with 244 additions and 70 deletions

View File

@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
- Attach a process to gdb:
`gdb -p {{procID}}`
`gdb {{[-p|--pid]}} {{procID}}`
- Debug with a core file:
`gdb -c {{core}} {{executable}}`
`gdb {{[-c|--core]}} {{core}} {{executable}}`
- Execute given GDB commands upon start:
`gdb -ex "{{commands}}" {{executable}}`
`gdb {{[-ex|--eval-command]}} "{{commands}}" {{executable}}`
- Start `gdb` and pass arguments to the executable:
@@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git
- Skip debuginfod and pagination prompts and then print the backtrace:
`gdb -c {{core}} {{executable}} -iex 'set debuginfod enabled on' -iex 'set pagination off' -ex bt`
`gdb {{[-c|--core]}} {{core}} {{executable}} -iex 'set debuginfod enabled on' -iex 'set pagination off' -ex bt`