Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1089579
  • 博文数量: 143
  • 博客积分: 969
  • 博客等级: 准尉
  • 技术积分: 1765
  • 用 户 组: 普通用户
  • 注册时间: 2011-07-30 12:09
文章分类

全部博文(143)

文章存档

2023年(4)

2021年(2)

2020年(4)

2019年(4)

2018年(33)

2017年(6)

2016年(13)

2014年(7)

2013年(23)

2012年(33)

2011年(14)

我的朋友

分类: LINUX

2013-10-24 17:12:00

今天在HP-UX上调试代码时,动态库下不了断点,提示如下信息


warning: Cannot insert breakpoint 0: in /lib/xxx_codeD.sl
warning: This is because your shared libraries are
warning: not mapped private. To attach to a process
warning: and debug its shared libraries you must 
warning: prepare the program with 
warning: "/opt/langtools/bin/pxdb -s on  "
warning:  or "chatr +dbg enable ".
warning: Add this to your Makefile for debug builds
warning: so that each rebuilt debuggable a.out would
warning: have this feature turned on.
Temporarily disabling shared library breakpoints:0 


根据提示执行
chatr +dbg enable xxx_codeD.sl


再次重新加载动态库,可以下断点.


另外,在64位机器下,应使用gdb64 ,而不是gdb
阅读(8033) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~