Graphical debugging depends on /dev/ptypd
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.
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->
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.
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.