Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:gdb [2009/10/12 16:48]
cyril
software:gdb [2013/09/19 16:40] (current)
Line 8: Line 8:
   * **# ''gdb <prog-file> <core-file>''** : inspect the core dump   * **# ''gdb <prog-file> <core-file>''** : inspect the core dump
   * **# ''gdb <prog-file> <pid>''** : attach to the running process   * **# ''gdb <prog-file> <pid>''** : attach to the running process
 +  * **# ''gdb --pid=<pid> --batch -ex gcore''** : dump the core of an alive process
 ==== Running ==== ==== Running ====
   * **''run <prog-args...>''** (short "r") : start the program   * **''run <prog-args...>''** (short "r") : start the program
Line 52: Line 52:
  
   * **''source <file-name>''** : load a set of commands from a file   * **''source <file-name>''** : load a set of commands from a file
-  * You can define macros in ~/.gdbinit+  * You can define macros in ~/.gdbinit, eg to automatically set some breakpoints.
  
software/gdb.1255366107.txt.gz ยท Last modified: 2013/09/19 16:43 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0