linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* still problems with kgdb
@ 2001-08-16 18:05 Fabrizio Dellabernarda
  2001-08-16 19:00 ` Edward Swarthout
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrizio Dellabernarda @ 2001-08-16 18:05 UTC (permalink / raw)
  To: linuxppc-dev@lists.linuxppc.org


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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: still problems with kgdb
  2001-08-16 18:05 still problems with kgdb Fabrizio Dellabernarda
@ 2001-08-16 19:00 ` Edward Swarthout
  0 siblings, 0 replies; 2+ messages in thread
From: Edward Swarthout @ 2001-08-16 19:00 UTC (permalink / raw)
  To: fabrizio; +Cc: linuxppc-dev


> 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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-16 19:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-16 18:05 still problems with kgdb Fabrizio Dellabernarda
2001-08-16 19:00 ` Edward Swarthout

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).