How is possible to debug a shared object on a remote target? The sources of the library are known, but not the sources of the application that loads the library. The compiler for the dynamic library is the arm-linux-gnueabihf-gcc and debugger the gdb-multiarch.
I have tried to use Eclipse CDT, debug configuration is "C/C++ Attach to application". I am able to connect to target but not step through the code of the shared library.
.gdbinit:
set architecture arm
set breakpoint pending on
Information to the used systems:
- Target/Remote System: Raspberry Pi 3 (ARM Cortex A53/Raspbian) with running gdb-server
- Host system: Linux/Ubuntu with Eclipse and gdb-multiarch
- Connection: TCP
I know that it is possible to do debugging and compilation native on the Raspberry Pi. But later on our shared object will be used on a board that uses similiar processor architecture, but with limited ressources. At this point the target system just offers the gdb-server and we are forced to use cross compiling and cross debugging.