No debug symbols for library used by package

asked 2016-02-03 08:24:32 -0600

Korken89 gravatar image

updated 2016-02-03 08:53:12 -0600

Hi all,

I have a debug problem with ROS, my setup is like this: I have in my workspace: MyPackage and MyLibrary as 2 ros packages. MyPackage is dependent on MyLibrary and the library is linked to MyPackage correctly. When compiling with debug symbols (-DCMAKE_BUILD_TYPE=Debug) and launching the ROS node "MyPackage" in GDB, the symbols for MyPackage are loaded but not for MyLibrary, so I cannot break in any function that is in side the library.

So my question is, how can I get the debug symbols for the library to be loaded as well when my node is linked with the library? All files (.cpp / .h) are available in the "MyLibrary" so there are no "hidden" binaries.

Thanks for the assistance!

edit: More specifically, the shared library is not loaded by GDB, and the libraryfile cannot be found using the sharedlibrary command. Even when the search path to the specific directory with the library is specified.

edit retag flag offensive close merge delete