still problems with kgdb

2 messages, 2 authors, 2001-08-16 · open the first message on its own page

still problems with kgdb

From: Fabrizio Dellabernarda <hidden>
Date: 2001-08-16 18:05:12

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/

Re: still problems with kgdb

From: Edward Swarthout <hidden>
Date: 2001-08-16 19:00:14

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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help