今天在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
阅读(8120) | 评论(0) | 转发(1) |