Skip to contentSkip to conversation

still problems with kgdb

DISCUSSION Fabrizio Dellabernarda 2 participants 2 messages Aug 16, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

sorry to bother anybody again with same subject but I'm debugging some drivers under Hard Hat Linux for PPC and I can't enable the kgdb to use it. I tryed to compile the kernel (for K2 750 PPC) after enabling the kgdb option (using make xconfig) but I have compilation errors:

arch/ppc/kernel/kernel.o: In function `getpacket':
/opt/hardhat/devkit/lsp/k2/linux-2.2.14/arch/ppc/kernel/ppc-stub.c:272:
undefined reference to `getDebugChar'
elocation truncated to fit: R_PPC_REL24 kgdb_interruptible /opt/hardhat/devkit/lsp/k2/linux-2.2.14/arch/ppc/kernel/ppc-stub.c:685:
undefined reference to `kgdb_interruptible' /opt/hardhat/devkit/lsp/k2/linux-2.2.14/arch/ppc/kernel/ppc-stub.c:685:
relocation truncated to fit: R_PPC_REL24 kgdb_interruptible
make: *** [vmlinux] Error 1

Did anybody have the same problem?
Thanks
Fabrizio

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 5 lines

sorry to bother anybody again with same subject but I'm debugging some drivers under Hard Hat Linux for PPC and I can't enable the kgdb to use it. I tryed to compile the kernel (for K2 750 PPC) after enabling the kgdb option (using make xconfig) but I have compilation errors:

In order to use kgdb which is in ppc-stubs, you need to have a special serial port driver which implements getDebugChar, putDebugChar, and kgdb_interruptible (Although you could probably comment-out this last one).

Based on a grep of 2.4 it doesn't look like there are many non-macintosh options:

[linuxppc_2_4_devel]$ find . -type f | xargs grep kgdb_interruptible ./arch/ppc/8xx_io/uart.c:void kgdb_interruptible(int yes)
./arch/ppc/kernel/ppc-stub.c: kgdb_interruptible(0);
./arch/ppc/kernel/ppc-stub.c: kgdb_interruptible(1);
./drivers/macintosh/macserial.c: kgdb_interruptible(1);
./drivers/macintosh/macserial.c:void kgdb_interruptible(int yes) ./drivers/tc/zs.c:void kgdb_interruptible(int yes)
./include/asm-ppc/kgdb.h:extern void kgdb_interruptible(int); /* control interrupts from serial */

-Ed

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/