免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2037 | 回复: 2
打印 上一主题 下一主题

调试as时,会自动下断点,什么原理? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-27 08:03 |只看该作者 |倒序浏览

  1. [root@mail ~/binutils-2.18/gas]# gdb as-new
  2. GNU gdb (GDB) 7.0
  3. Copyright (C) 2009 Free Software Foundation, Inc.
  4. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  5. This is free software: you are free to change and redistribute it.
  6. There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  7. and "show warranty" for details.
  8. This GDB was configured as "i686-pc-linux-gnu".
  9. For bug reporting instructions, please see:
  10. <http://www.gnu.org/software/gdb/bugs/>...
  11. Reading symbols from /root/binutils-2.18/gas/as-new...done.
  12. Breakpoint 1 at 0x805c460: file messages.c, line 187.
  13. Breakpoint 2 at 0x805c4aa: file messages.c, line 225.
  14. Breakpoint 3 at 0x805c5a1: file messages.c, line 288.
  15. Breakpoint 4 at 0x805c5e2: file messages.c, line 323.
  16. Breakpoint 5 at 0x805c622: file messages.c, line 360.
  17. Breakpoint 6 at 0x805c6a3: file messages.c, line 396.
  18. Breakpoint 7 at 0x805c754: file messages.c, line 413.
  19. Breakpoint 8 at 0x8049240
  20. (gdb) i b
  21. Num     Type           Disp Enb Address    What
  22. 1       breakpoint     keep y   0x0805c460 in as_warn at messages.c:187
  23. 2       breakpoint     keep y   0x0805c4aa in as_warn_where at messages.c:225
  24. 3       breakpoint     keep y   0x0805c5a1 in as_bad at messages.c:288
  25. 4       breakpoint     keep y   0x0805c5e2 in as_bad_where at messages.c:323
  26. 5       breakpoint     keep y   0x0805c622 in as_fatal at messages.c:360
  27. 6       breakpoint     keep y   0x0805c6a3 in as_assert at messages.c:396
  28. 7       breakpoint     keep y   0x0805c754 in as_abort at messages.c:413
  29. 8       breakpoint     keep y   0x08049240 <abort@plt>
  30. (gdb)
复制代码

论坛徽章:
0
2 [报告]
发表于 2010-03-27 12:17 |只看该作者
build 目录下有一个 .gdbinit 。

论坛徽章:
0
3 [报告]
发表于 2010-03-27 13:42 |只看该作者
果然是的,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP