Subject: pkg/28822: ddd doesn't work with KGDB
To: None <email@example.com, firstname.lastname@example.org,>
From: None <email@example.com>
Date: 12/31/2004 08:30:00
>Synopsis: ddd doesn't work with KGDB
>Arrival-Date: Fri Dec 31 08:30:00 +0000 2004
>Originator: Teemu Rinta-aho
NetBSD n80.nomadiclab.com 2.99.11 NetBSD 2.99.11 (LB6120) #0: Thu Dec 30 13:45:52 EET 2004 firstname.lastname@example.org:/usr/src/sys/arch/i386/compile/LB6120 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/Makefile.inc
RCS file: /cvsroot/src/gnu/usr.bin/gdb53/Makefile.inc,v
retrieving revision 1.1
diff -r1.1 Makefile.inc