We have moved to a new Sailfish OS Forum. Please start new discussions there.

How to debug using gdb on device?

asked 2014-01-09 17:48:38 +0300

juke gravatar image

updated 2018-12-03 21:48:01 +0300

Tanghus gravatar image

I'm running the SailfishOS IDE on Ubuntu 12.04 x86_64. Debug launching fails on emulator and on device. On #sailfishos I was told that Debug launching is broken for the time being and I should use gdb for debugging.

However when I debug build my app the debugging symbols are missing. How do i fix that?

[nemo@localhost ~]$ gdb /usr/bin/App 
GNU gdb (GDB) Mer (7.5.1)
Copyright (C) 2012 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 "armv7hl-meego-linux-gnueabi".
For bug reporting instructions, please see:
Reading symbols from /usr/bin/App...Missing separate debuginfo for /usr/bin/App
Try: zypper install -C "debuginfo(build-id)=f61aba354147136fcd5d3387b357011de4306b68"
(no debugging symbols found)...done.
edit retag flag offensive close delete

2 Answers

Sort by » oldest newest most voted

answered 2014-01-09 18:18:09 +0300

juke gravatar image

Adding line

%define debug_package %{nil}

at the top of .spec file after the

# >> macros
# << macros

lines did the trick. Now debug symbols are not stripped.

edit flag offensive delete publish link more

answered 2016-05-13 14:46:00 +0300

jdrescher2006 gravatar image

I have a similar problem. Debug launching fails on my Jolla, because gdb in not installed. When I try to install it with - devel su
- pkcon install gdb-gdbserver
I get an error message:
Fatal error: File './core/armv7hl/gdb-gdbserver-7.5.1+git3-1.4.7.armv7hl.rpm' not found on medium 'https://releases.jolla.com/releases/'

It seems that is missing the gdb package. Has anyone got the debugger running?

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools



Asked: 2014-01-09 17:48:38 +0300

Seen: 1,076 times

Last updated: May 13 '16