Graphical debugging depends on /dev/ptypd

Bug #377340 reported by Jon Martini
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnat-gps (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: gnat-gps

Package information:
gnat-gps
4.3-2008.08.09ubuntu1

System Information:
Ubuntu
Release 9.04 (jaunty)
Kernel Linux 2.6.28-11-generic
GNOME 2.26.1

Problem summary:
gnat-gps works under Ubuntu 8.10, but 9.04 removed /dev/ptypd which broke graphical debugging.

Problem creation:
From gnat-gps start a debugging session for a project that is compiled for debugging by selecting Debug->Initialize->"Your program's name" from the the menu. Alternatively you can initialize a debugging session and use the 'file' gdb command to load a program for debugging.

Switch to the Debugger Console and attempt the run the program loaded.

(gdb) run
/dev/ptypd: No such file or directory.

Program exited with code 01.
You can't do that without a process to debug.
(gdb)

The same compiled executable can be run by gdb on the command line, so it is not a problem with the program being debugged.

Revision history for this message
Robert Richardson (robert-initek) wrote :

Rebuilding the package after modifying debian/rules:
CFLAGS := -g -O2 -DHAVE_PTSNAME -DHAVE_GRANTPT -DHAVE_UNLOCKPT
solves the problem.

These macros are required for common/gnat/gexpect_tty.c to work with /dev/ptmx.

Revision history for this message
Martin Schneeweis (snowy-schneeweis) wrote :

This seems to be a solution for the problem above:
https://answers.launchpad.net/ubuntu/+question/75246

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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