mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-03 19:55:14 +00:00
Update cheatsheets
This commit is contained in:
8
tldr/gdb
8
tldr/gdb
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user