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:
parent
fccf4ff2db
commit
154c833f51
2 changed files with 8 additions and 0 deletions
|
@ -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`
|
||||||
|
|
|
@ -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"`
|
||||||
|
|
Loading…
Add table
Reference in a new issue