1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 06:22:07 +02:00

gdb, coredumpctl: add prompt skip examples (#15727)

* Update gdb.md

* Update coredumpctl.md

* Update gdb.md

* Update coredumpctl.md

* Update pages/linux/coredumpctl.md

Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>

---------

Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
This commit is contained in:
Managor 2025-02-13 04:27:12 +02:00 committed by GitHub
parent fccf4ff2db
commit 154c833f51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -22,3 +22,7 @@
- Start `gdb` and pass arguments to the executable: - Start `gdb` and pass arguments to the executable:
`gdb --args {{executable}} {{argument1}} {{argument2}}` `gdb --args {{executable}} {{argument1}} {{argument2}}`
- 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`

View file

@ -26,3 +26,7 @@
- Extract the last core dump of a program to a file: - Extract the last core dump of a program to a file:
`coredumpctl --output={{path/to/file}} dump {{program}}` `coredumpctl --output={{path/to/file}} dump {{program}}`
- Skip debuginfod and pagination prompts and then print the backtrace when using `gdb`:
`coredumpctl debug --debugger-arguments="-iex 'set debuginfod enabled on' -iex 'set pagination off' -ex bt"`