Subject: pkg/28822: ddd doesn't work with KGDB
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <teemu@rinta-aho.org>
List: pkgsrc-bugs
Date: 12/31/2004 08:30:00
>Number:         28822
>Category:       pkg
>Synopsis:       ddd doesn't work with KGDB
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 31 08:30:00 +0000 2004
>Originator:     Teemu Rinta-aho
>Release:        current
>Organization:
>Environment:
NetBSD n80.nomadiclab.com 2.99.11 NetBSD 2.99.11 (LB6120) #0: Thu Dec 30 13:45:52 EET 2004  root@n80.nomadiclab.com:/usr/src/sys/arch/i386/compile/LB6120 i386

>Description:
When trying to remotely debug the kernel, I found out that
the ddd from pkgsrc (ddd-3.3.8nb1) doesn't work. There seems
to be a problem with ddd<->gdb interface, as plain gdb seems
to work fine.

When running DDD, I get the following on the terminal:

gdb: cannot set terminal foreground process group: Inappropriate ioctl for device

This happens almost immediately when starting ddd,
and it doesn't matter if I'm running it as the root
or as a regular user. I can't even issue the "cont"
command to the target, it fails already in the beginning.

>How-To-Repeat:
1. Install NetBSD-current.

2. Set up kernel debugging environment following the instructions
   in NetBSD documentation.

3. Install ddd from pkgsrc.

4. Try to debug with ddd.
>Fix:
I tried this, but it doesn't change anything:

$ cvs diff gnu/usr.bin/gdb53/Makefile.inc
Index: gnu/usr.bin/gdb53/Makefile.inc
===================================================================
RCS file: /cvsroot/src/gnu/usr.bin/gdb53/Makefile.inc,v
retrieving revision 1.1
diff -r1.1 Makefile.inc
3c3
< USE_LIBEDIT=yes
---
>> USE_LIBEDIT=no