Problem with debugger and shared libraries
Posted: Mon Mar 16, 2009 6:34 pm
Hi, I've discovered that it is quite difficult to debug shared libraries with the CL. The problem is that breakpoints set the in shared library's source code don't stop the debug process if the library is build and linked dynamically. If the library is build statically, the the breakpoints work (nearly) fine.
The debugger's output in a case it failed is as follows:
This log tells that a file XmlSerializer.cpp doesn't exist but it is not the true. Moreover, If the library is linked statically, the breakpoint is found and work well.
Any idea where is the problem and how it can be fixed?
Best regards
Michal
The debugger's output in a case it failed is as follows:
Code: Select all
Debug session started successfully!
Debuggee process ID: 8403
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
set unwindonsignal on
set breakpoint pending on
set width 0
set height 0
No source file named /home/michal/Src/Projekty/wxXS/src/XmlSerializer.cpp.
No source file named /home/michal/Src/Projekty/wxXS/src/XmlSerializer.cpp.
Continuing...
[Thread debugging using libthread_db enabled]
[New Thread 0xb6804700 (LWP 8403)]
Debug session ended
Any idea where is the problem and how it can be fixed?
Best regards
Michal