Chinaunix首页 | 论坛 | 博客
  • 博客访问: 407736
  • 博文数量: 48
  • 博客积分: 764
  • 博客等级: 上士
  • 技术积分: 1133
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-17 13:29
文章分类

全部博文(48)

文章存档

2014年(5)

2013年(34)

2012年(9)

GDB

分类: LINUX

2013-07-05 22:21:52


== 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 {}




阅读(1902) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~