GDB

1930阅读 0评论2013-07-05 firocu
分类:LINUX


== Structure ==
You can see what is going on "inside" another program while it executes
or what other program was doing at the moment it crashed.
gdb can do four main kinds of things to achive the goals mentioned above:
Start your program, specifying anything that might affect its behavior.
Make your program stop on specified conditions.
Examine what has happened, when your program has stopped.
Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another.

== Understand ==
Start your program, specifying anything that might affect its behavior.
=======================================
Invokes gdb
Running under gdb

Make your program stop on specified conditions.
============================
Stoping and continuing

Examine what has happened, when your program has stopped.
====================================
Examin stack, source file, data, symbols table.

Altering Execution
==========


###Parctice
gdb 调试 core.


print {}




上一篇:Greg 大侠讲解,提交你的第一个kernel patch
下一篇:Fedora 19 登入后系统无声音