Debugging with Developer Studio?


#1

Hi, I originally posted this on the legato forums, but I think this might be more of a Developer Studio related issue.

I am trying to debug my FX30s. I have a legato app that uses a shared library that I built with the cross compile tools (from command line). It all builds and runs OK, but when I try and debug it, GDB complains that it can’t load the symbols and exits.

Error messages below

GNU gdb (GDB) 7.7.1
Copyright © 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
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:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
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/libDL4Api-Linux.so.
> Use the “info sharedlibrary” command to see the complete listing.
> Do you need “set solib-search-path” or “set sysroot”?
Quit

So I am not sure what I am doing wrong? On the “Executables” tab the libraries are shown along with all source information on the right.

I am using DS 5.0.0 and LF 16.10.1

Do I need to build this in a particular way?
Any def files entries required?
I assume I should be able to debug this even though I am using my shared library?
I can’t see where I might add the suggested arguments in Developer Studio?

Any help is appreciate.

Thanks,
Karl


#2

Hi @karlkuhn

At first, I would suggest you to upgrade to latest DS version (5.3.1)
It will still be compatible with your environment.


#3

Thanks @daav, I tried that as way to get it working. With no luck unfortunately.

I’ve also update to 16.10.1.m3 FW and AF…

Any ideas?

Thanks,

KArl