Re: Kernel debug about Linux for PowerPC

From: Momchil Velikov (velco@fadata.bg)
Date: Tue Mar 07 2000 - 05:04:26 EST


Shuangjun Zhu wrote:
>
> Hello,
>
> I want to use the gdb to debug the kernel version 2.2.13 for my MPC860
> board.
> So I set the compiler configuration parameter CONFIG_KGDB = YES,
> but when I re-compile the kernel, it complains that
>
> arch/ppc/kernel/kernel.o(.text+0x68ac): undefined reference to
> `getDebugChar'
> arch/ppc/kernel/kernel.o(.text+0x6934): undefined reference to
> `putDebugChar'
>
> PROBLEM:
> what's wrong? I find no define for function "getDebugChar" in arch/ppc
> directory.

You have to write these functions yourself. The stub uses them to
communicate with the debugger through whatever device is available on
the board. See 'Targets' -> 'Remote' -> 'Remote Serial' in GDB docs.

Regards,
-velco

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:22 EST