gdb
The GNU Debugger. More information: https://sourceware.org/gdb/current/onlinedocs/gdb#Invocation.
- Debug an executable:
gdb
- Attach a process to
gdb:
gdb
- Debug with a core file:
gdb
- Execute given GDB commands upon start:
gdb ""
- Start
gdband pass arguments to the executable:
gdb --args
- Skip
debuginfodand pagination prompts and then print the backtrace:
gdb -iex 'set debuginfod enabled on' -iex 'set pagination off' -ex bt
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
