The gdbserver is not available on the device image

Bug #1364872 reported by Zoltan Balogh
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Medium
Pat McGowan
Client Developer Experience
Fix Released
Medium
Unassigned
ubuntu-touch-meta (Ubuntu)
Fix Released
Medium
Łukasz Zemczak
ubuntu-touch-meta (Ubuntu RTM)
Fix Released
Undecided
Unassigned

Bug Description

To enable debugging of applications with C++ code the target device must have gdbserver package installed.

Right now for that the app developers need to turn the device writable and manually install the gdbserver package.

It would be much more convinient and secure to keep the device readonly and have the gdbserver pre-installed on the device.

The disk space should not be a concern as all installed files from the package use up 215KB (binary - 190KB + doc - 20KB + manpage - 5KB)

Related branches

Oliver Grawert (ogra)
Changed in ubuntu-meta (Ubuntu):
status: New → Invalid
Changed in ubuntu-touch-meta (Ubuntu):
importance: Undecided → Medium
assignee: nobody → Oliver Grawert (ogra)
status: New → Confirmed
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-meta (Ubuntu)
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This seriously needs to be fixed asap. You can't expect developers to install the gdbserver manually via adb :(

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

This should only be seeded for developer version and not consumer versions.

Revision history for this message
Neil McPhail (njmcphail) wrote :

I'm not sure I agree this should only be in developer versions. I need a phone which works (hence stable channel), but also like to develop and debug apps. The 2 use cases are not mutually exclusive.

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

Some days ago, I tried to install the gdbserver, however, we still could not debug the scope in SDK. I think there could be some problem with the gdb debugging.

Revision history for this message
Ted Gould (ted) wrote :

Discussed this with Pat on IRC. While we want to keep most general debugging tools off the standard image we're good with gdbserver because it is small and really just a channel into the device. It allows the tool to be installed on the host, so it's not really putting all the tools into the device itself.

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

Debugging on Desktop (15.04) and on emulator (14.04) crashes. Attached please find the captured picture.?

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

@seb do you maintain this now?

Changed in ubuntu-touch-meta (Ubuntu):
assignee: Oliver Grawert (ogra) → Sebastien Bacher (seb128)
Changed in canonical-devices-system-image:
assignee: nobody → Pat McGowan (pat-mcgowan)
importance: Undecided → Medium
milestone: none → backlog
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

not really, Lucasz does rather

Changed in ubuntu-touch-meta (Ubuntu):
assignee: Sebastien Bacher (seb128) → Łukasz Zemczak (sil2100)
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

lets just put this in now

Changed in canonical-devices-system-image:
milestone: backlog → ww02-2016
status: Confirmed → In Progress
Changed in canonical-developer-experience:
importance: Undecided → Medium
status: New → In Progress
status: In Progress → Confirmed
Changed in canonical-devices-system-image:
status: In Progress → Confirmed
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

ubuntu-touch-meta (1.221vivid23) vivid; urgency=medium

  * Add gdbserver. Needed by QtCreator debugging applications and scopes.
    (LP: #1364872)

 -- Timo Jyrinki <email address hidden> Thu, 17 Dec 2015 16:05:23 +0200

Changed in ubuntu-touch-meta (Ubuntu RTM):
status: New → Fix Released
Changed in canonical-devices-system-image:
status: Confirmed → Fix Committed
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
Changed in ubuntu-touch-meta (Ubuntu):
status: Confirmed → Fix Released
Changed in canonical-developer-experience:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.