canīt step into shared library
Hi,
I'm completely new to Linux programming. I am having a big problem trying to debug a program using the wxWindows (wxGTK-2.4.2) library using KDevelop 3.0.2. Firstly, I made the debug version of the library using these commands: ./configure --with-gtk --enable-debug make make install ldconfig I can step into any function in my own program fine, but it refuses to step into most of the wxWindows functions. If anyone can help me with this problem I would be deeply grateful, Ed |
Why would you like to step into wxWindows functions?
Do you think they are not working correctly? If so, you have to compile the wxWindows library from sources with debugging information in it. |
You nearly always have to step into wxWindows to see what's going on (especially if you are enhancing functionality of the wxWindoes controls).
I have built the debug version of the library (see my origonal post for commands I used).. though there was origonially a release version of the library installed. I assume that the release dlls are overwritten when you do "make install". Quote:
|
Sorry I was a bit sloppy with reading your post in the first place.
The self-installed libraries are probably installed to /usr/local/lib/. The ones that came with the system are probably located in /usr/lib/. You can use ldd to see what libraries are being used with the executable and use the LD_LIBRARY_PATH or LD_PRELOAD to override those paths/libraries (see man ld.so for details). BTW. I just found (atleast in debian) that there is a pre-configured package for debugging called libwxgtk2.4-dbg. |
All times are GMT -5. The time now is 11:42 AM. |