Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 396 Bytes

gdb.rst

File metadata and controls

26 lines (14 loc) · 396 Bytes

GDB

  • Start gdb using program

    $ gdb program
    
  • Start gdb using core file

    $ gdb program core
    
  • Start gdb using process ID

    $ gdb program <PID>
    
  • Quitting from gdb

    (gdb) quit
    
  • Running shell command from gdb prompt

    (gdb) shell ls
    
  • Invoke make from gdb prompt

    (gdb) make make-args