Skip to content

Latest commit

 

History

History
52 lines (28 loc) · 680 Bytes

faq_gdb.md

File metadata and controls

52 lines (28 loc) · 680 Bytes

GDB brief howto

Useful command line arguments

Interactivity control

Start gdb without extra info output:

$ gdb  -q

Alternatives:

  • --quiet
  • --silent

Run gdb in batch/script mode and exit:

$ gdb  --batch

Execute gdb command inside running instance:

$ gdb  -ex  command

File config control

  • --nh - do not process ~/.gdbinit config file
  • --nx - do not process any .gdbinit config file

Session commands

One-liners

Start gdb in silent batch mode with app binary, execute 'run' command and exit on binary execution complete:

$ gdb  --silent  --batch  app   -ex run

TBA