Fixed
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
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.
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"