I have a question related to debugging a shared library with codeblocks in Ubuntu. I have no problem when I run a C++ program with a shared library. The main problem, however, is that when I debug the program, I cannot go into the source codes of the shared library. The source codes of the shared library is provided, and I build the shared library first before I build the program. I guess that I need to set some parameters for the program's codeblocks project before running the debugging, but I have no idea where I should do the setting. Many thanks.
Some additional information is as follows:
1. My project structure is something like that:
(1)./program the running application program that will invoke run_test.so
(2) run_test.so the test dynamic library that will invoke basic_library.so
(3) basic_library.so the library called by run_test.so
When I debug ./program project I can go into the source codes of run_test.so , but when I want to step into the functions coming from basic_library.so in the source code of run_test.so, I have problems. It just ignore the step into command.
2. The version of the codeblock is 12.11, and I am running it in Ubuntu.
3. The compile I have chosen is GCC 4.6.
4. The codeblock project is created by CMake scripts.