Chinaunix首页 | 论坛 | 博客
  • 博客访问: 292962
  • 博文数量: 108
  • 博客积分: 4260
  • 博客等级: 上校
  • 技术积分: 1145
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-21 13:22
文章分类

全部博文(108)

文章存档

2011年(40)

2010年(22)

2009年(17)

2008年(29)

我的朋友

分类: LINUX

2011-01-17 17:48:00

安装软件的时候,经常会发现有一些 -dbg 的包,比如 iceweasel-dbg,软件包信息中指出这个包中包含了 iceweasel 的调试符号信息。那么调试符号信息是如何生成的呢,生成的调试符号信息又如何使用呢?

看了 strip 的 manual,发现有这样一个功能:

--only-keep-debug    removing contents of any sections that would not be stripped by --strip-debug  and  leaving  the debugging sections intact.

正是生成 debug symbol 的方法,manual 里面详细介绍了如何制作 debug symbol 文件,并且将 stripped 的可执行文件和 debug 文件关联起来的办法。

1.
"foo" then...

2.
create a file containing the debugging info.

3.
stripped executable.

4.
to add a link to the debugging info into the stripped executable.
阅读(1136) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~