* kgdb and GetDebugChar/PutDebugChar
@ 2000-04-25 21:33 Brown, David (dbrown03)
2000-04-25 22:15 ` Dan Malek
0 siblings, 1 reply; 2+ messages in thread
From: Brown, David (dbrown03) @ 2000-04-25 21:33 UTC (permalink / raw)
To: linuxppc-embedded
Re: http://lists.linuxppc.org/listarcs/linuxppc-dev/200003/msg00097.html
When KGDB is enabled, no GetDebugChar/PutDebugChar functions exist.
The answer given in the message above was that you have to write your own,
based on the hardware.
Surely, someone here has done that for the ppc8xx, using maybe SMC2?
Shouldn't such functions be in 8xx_io/uart.c?
If SMC2 is used for KGDB, I assume it shouldn't be included in rs_table?
--
Dave Brown <dbrown03@harris.com>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: kgdb and GetDebugChar/PutDebugChar
2000-04-25 21:33 kgdb and GetDebugChar/PutDebugChar Brown, David (dbrown03)
@ 2000-04-25 22:15 ` Dan Malek
0 siblings, 0 replies; 2+ messages in thread
From: Dan Malek @ 2000-04-25 22:15 UTC (permalink / raw)
To: Brown, David (dbrown03); +Cc: linuxppc-embedded
"Brown, David (dbrown03)" wrote:
> When KGDB is enabled, no GetDebugChar/PutDebugChar functions exist.
If KGDB works in the rest of the kernel, the functions are there.
> Surely, someone here has done that for the ppc8xx, using maybe SMC2?
It exists in the MontaVista 2.2.13 kernel, and in the 2.3.99 kernel.
The latter is better because it starts very early in the boot, and
you can debug almost anything in the kernel (except stepping over
instructions that disable the interrupts). I will back port the
2.3.xx into the 2.2.14 kernel shortly, or you can do it and send
me the patches.
It uses SMC1 because it is convenient, and it allows debugging
data comm or other features that use SMC2. When you boot a kernel
that uses KGDB, you provide the initial console input to the Linux
prompt, then disconnect your terminal emulator from the serial port,
and start up GDB on the serial port.
You can also use XMON, which is sometimes more useful that gdb.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-04-25 22:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-25 21:33 kgdb and GetDebugChar/PutDebugChar Brown, David (dbrown03)
2000-04-25 22:15 ` Dan Malek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.