GDB调试问题

Unique20102003 2009-06-14 04:14:20
IBM AIX 环境下:
ait5602:/opt/ai_fs02/crm/data/shuxb/work/products/unibss30/unibssGw/acc/accmgr/src$>gdb bargaintranferzj
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix5.1.0.0"...
(gdb) r
Starting program: /opt/ai_fs02/crm/data/shuxb/work/products/unibss30/unibssGw/acc/accmgr/src/bargaintranferzj
Warning:
Cannot insert breakpoint -1.
Error accessing memory address 0x228a4c30: I/O error

调试bargaintranferzj程序,
bargaintranferzj 该程序链接的是so动态库。 不知道什么原因,我并没有设置断点, 为什么一直提示无法插入断点呢?
是不是要指定动态库路径呢?

...全文
46 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
threeleafzerg007 2009-06-15
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 popeye 的回复:]
-g3?
[/Quote]

老同学? 记得大学有个叫popeye的 姓林的
popeye 2009-06-15
  • 打赏
  • 举报
回复
-g3?
threeleafzerg007 2009-06-14
  • 打赏
  • 举报
回复
Error accessing memory address 0x228a4c30: I/O error

这个好奇怪了,我用gdb的时候貌似没碰到过。。。

试试.so exe 都用-g 编译试试
Unique20102003 2009-06-14
  • 打赏
  • 举报
回复
这个就是DEBUG版的。使用了 -g 了的。
wangkongxinglang 2009-06-14
  • 打赏
  • 举报
回复
-g
Unique20102003 2009-06-14
  • 打赏
  • 举报
回复
程序可以正常运行的。-o是干什么用的?谢谢。。
neohope 2009-06-14
  • 打赏
  • 举报
回复
1.你的程序能正常运行吗
2.你启用-o了吗

23,120

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧