Problem debugging FX30 using shared library

Hi, I am trying to debug my application that is running on a FX30s. It builds and runs OK, but the debugger tries to attached with the following error messages…

GNU gdb (GDB) 7.7.1
Copyright © 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type “show copying”
and “show warranty” for details.
This GDB was configured as “–host=i686-pokysdk-linux --target=arm-poky-linux-gnueabi”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type “help”.
Type “apropos word” to search for commands related to “word”.
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Cannot access memory at address 0x0
warning: Could not load shared library symbols for 9 libraries, e.g. /bin/…/lib/
Use the “info sharedlibrary” command to see the complete listing.
Do you need “set solib-search-path” or “set sysroot”?

I am using DS 5.00 and LF 16.10.1.

The one shared library is cross compiled using arm-poky-linux-gnueabi-g++ not sure what the other 8 are…

How do I best get around this issue?



Hello Karl,

Please tell which procedure has been used on your side:

  • add “-d” option to mkapp
  • or rebuild Legato by passing STRIP_STAGING_STREE=0 to its make, add --cflags="-g" and --ldflags="-g" to mkapp, and pass “set solib-search-path” to GDB client?


Hi @flu, I have built it using Developer studio… the build log is as follows

15:27:51 **** Incremental Build of configuration Target_Legato_Debug for project DLC_Gateway_Legato ****
make -I /home/legato/legato/packages/legato.framework.16.10.1.wp85-wp750x-201701111029/resources/legato all
cd …;mkapp -t wp85 -o Target_Legato_Debug -w Target_Legato_Debug -i “/home/legato/legato/packages/legato.framework.16.10.1.wp85-wp750x-201701111029/resources/legato/interfaces/atServices” -i “/home/legato/legato/packages/legato.framework.16.10.1.wp85-wp750x-201701111029/resources/legato/interfaces/secureStorage” -i “/home/legato/legato/packages/legato.framework.16.10.1.wp85-wp750x-201701111029/resources/legato/interfaces/positioning” -i “/home/legato/legato/packages/legato.framework.16.10.1.wp85-wp750x-201701111029/resources/legato/interfaces/wifi” -i “/home/legato/legato/packages/legato.framework.16.10.1.wp85-wp750x-201701111029/resources/legato/interfaces/airVantage” -i “/home/legato/legato/packages/legato.framework.16.10.1.wp85-wp750x-201701111029/resources/legato/interfaces” -i “/home/legato/legato/packages/legato.framework.16.10.1.wp85-wp750x-201701111029/resources/legato/interfaces/modemServices” -i “/home/legato/legato/packages/legato.framework.16.10.1.wp85-wp750x-201701111029/resources/legato/interfaces/supervisor” -i “/home/legato/legato/packages/legato.framework.16.10.1.wp85-wp750x-201701111029/resources/legato/interfaces/logDaemon” -i /home/legato/projects/DLC-Gateways_DS/DLC-Gateway-Base -i /home/legato/projects/DLC-Gateways_DS/XPlat-Shared -i /home/legato/projects/DLC-Gateways_DS/DL4Api-Base -i /home/legato/projects/DLC-Gateways_DS/DL4Api-Linux -s “.” -s “/home/legato/legato/packages/legato.framework.16.10.1.wp85-wp750x-201701111029/resources/legato/components” -C -g -X -g -L -g DLC_Gateway_Legato.adef
ninja: no work to do.
av-pack -b . -u DLC_Gateway_Legato.wp85.update -t LegatoApplication
Generating an airvantage package for a legato application.
adding: DLC_Gateway_Legato.wp85.update (deflated 0%)
adding: (deflated 69%)

15:27:51 Build Finished (took 430ms)


As per flu mentioned, please try to provide the -d option in mkapp command.

For your reference, Please check the below link for Debug using GDB.

Best Regards,
Bharath Kumar V