Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

Why does the debugger not load symbols for my shared library?
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: Debugger not loading shared lib symbols
  • SDP: 6.3.2
  • Host/Target: Any supported host/target debug environment
________________________________________________________________________

Question
________________________________________________________________________

QNXIDE, Why does the debugger not load symbols for my shared library?

________________________________________________________________________

Recommendation
________________________________________________________________________
First, it needs to find this library in your shared library path on the host. You usually have to explicitly specify this in the Shared Libraries tab in the Debug tab of the launch configuration. Second, the library file name must be the same as the so name with "lib" prefix. You can check the so name if you open Properties view for the library (.so file) or open it in the Binary editor. For example, if your so name is aaa.so.1 and your library name is libaaa.so, gdb will be unable to match the two, because of the extra version number. To avoid this problem when debugging, do not use so version number when you generate the so name for your library. Third, the library has to be compiled with debug information.

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.