Debugging with GDB (2) 调用GDB

怎么调用gdb
gdb program
gdb program corefile <=> gdb program -c corefile
gdb program 1234
    would attach gdb to process 1234 (unless you also have a file named 1234; gdb does check for a core file first).
gdb --args gcc -O2 -c foo.c
    This will cause gdb to debug gcc, and to set gcc's command-line arguments to `-O2 -c foo.c'.
gdb -silent
gdb + atta

posted @ 2013-03-28 17:57  Me.thinking  阅读(182)  评论(0编辑  收藏  举报