How to debug a Qt-sample application with Digi ESP, and how to analyze core dump on device

Digi Embedded Linux 5.x provided Qt-sample application like tetrix_qt. The application uses qmake to build a .pro project file, as well as qmake to create a generated.mk which is used to build the final "tetrix" application. Using the ESP remote debugging will not work, since the application is always compiled without debug symbols or symbols are stripped off when rootfs is created.

In order to get debug symbols permanently compiled into the tetrix_qt sample application, modify its Makefile to add CONFIG+=debug to all qmake calls:
/usr/bin on your target. If you want to see the source code while analyzing a core dump on the device, you need to copy the sources into the directory from where gdb is launched (in above example main.cc is needed).

To debug a core dump, you can also retrieve the core from the device and store it on your development PC build directory. As gdb you have to use then:
   /usr/local/DigiEL-5.9/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gdb ./tetrix core
With this method you also have the full sources already in the local directory.
Last updated: Aug 23, 2017

Filed Under


Recently Viewed Articles

No recently viewed articles