Wind River Support Network

HomeDefectsLIN1021-154
Fixed

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: 10.21.20.1
Fix Version: 10.21.20.1
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Build & Config, Documentation

Description

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,
-L<workspace>/myShared/corei7-xxxx/libmyShared/Debug
-lmyShared
4. build the application project
5. scp libmyShared.so 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
Online