开发者

Cannot insert a breakpoint in shared Library

开发者 https://www.devze.com 2022-12-28 23:16 出处:网络
Friends While debugging an application of of the function is defined in a shared library which is written by another vendor .

Friends

While debugging an application of of the function is defined in a shared library which is written by another vendor . and I get an error like

warning: Cannot insert breakpoint 0: in 开发者_运维问答/opt/trims/uat/lib/libTIPS_Oleca.sl

warning: This is because your shared libraries are not mapped private. To attach to a process and debug its shared libraries you must prepare the program with **"/opt/langtools/bin/pxdb -s on a.out or "chatr +dbg enable a.out ".****

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

Now the problem is I cannot modify the shared library . How do I resolve this error ? Many Thanks


You don't need to modify the shared library.

Instead, you must modify your main executable (by running pxdb -s or chatr +dbg enable on it).

The a.out in the message you are getting refers to your main executable -- it's a UNIX convention that the output from linker is called a.out if you don't explicitly name it.

0

精彩评论

暂无评论...
验证码 换一张
取 消