Kernel debug about Linux for PowerPC

4 messages, 3 authors, 2000-03-07 · open the first message on its own page

Kernel debug about Linux for PowerPC

From: Shuangjun Zhu <hidden>
Date: 2000-03-07 03:35:29

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.

Any suggestion is appreciated!

BRs,
Shuangjun


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

Re: Kernel debug about Linux for PowerPC

From: Momchil Velikov <hidden>
Date: 2000-03-07 10:04:26

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

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

Re: Kernel debug about Linux for PowerPC

From: Dan Malek <hidden>
Date: 2000-03-07 15:24:02

Momchil Velikov wrote:
You have to write these functions yourself.
No, you don't.  Just download the kernel sources for
linuxplanet-2.2.13 from MontaVista (ftp.mvista.com).
It has the kgdb support.


	-- Dan

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

Re: Kernel debug about Linux for PowerPC

From: Momchil Velikov <hidden>
Date: 2000-03-07 16:45:31

Dan Malek wrote:
Momchil Velikov wrote:
quoted
You have to write these functions yourself.
No, you don't.  Just download the kernel sources for
linuxplanet-2.2.13 from MontaVista (ftp.mvista.com).
It has the kgdb support.
Yep, you don't have to, iff some kind soul has already written
these for your particular device on your particular board ;-)

Regards,
-velco

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