Wind River Support Network


LIN1021-154 : step into shared library function will fail with an error "no debug information available, or outside of program code."

Created: May 17, 2021    Updated: Jun 8, 2021
Resolved Date: Jun 8, 2021
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Build & Config, Documentation


When using shared libraries while debugging an application, to ensure the *-dbg files required for debugging are available, you may need to manually add the libraries to the SDK.

Steps to Reproduce

first import SDK, for example SDK for ia 
1. create and build a wrlinux shared library project  with code myShared.c
2. create a wrlinux application project with code myApp.c
3. add library in the application project build properties,
4. build the application project
5. scp to target path "/tmp", and "export LD_LIBRARY_PATH=/tmp"
6. create target connection
7.  click "Debug the Remote Linux Application" on this application project, in the opened Debug Configurations:
7.a) fill the "LD_LIBRARY_PATH=/tmp" in Enviornment tab 
7.b)add shared library .so path in "Shared Libraries" in the Debugger tab
8.  then click Apply, Debug
9. when the debugger gos to the function "myShared();", click "Step into"
Live chat