Subject: pkg/28822: ddd doesn't work with KGDB
To: None <,,>
From: None <>
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
NetBSD 2.99.11 NetBSD 2.99.11 (LB6120) #0: Thu Dec 30 13:45:52 EET 2004 i386

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.

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.
I tried this, but it doesn't change anything:

$ cvs diff gnu/usr.bin/gdb53/
Index: gnu/usr.bin/gdb53/
RCS file: /cvsroot/src/gnu/usr.bin/gdb53/,v
retrieving revision 1.1
diff -r1.1