This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Gdb target for kdb
- To: Bernard Mainguenaud <mainguen at gabin dot frcl dot bull dot fr>
- Subject: Re: Gdb target for kdb
- From: David Taylor <taylor at cygnus dot com>
- Date: Tue, 23 Nov 1999 18:44:29 -0500
- cc: gdb at sourceware dot cygnus dot com, Jim Blandy <jimb at cygnus dot com>
From: Jim Blandy <jimb@cygnus.com>
Date: 23 Nov 1999 16:04:07 -0500
> We intend to use gdb to debug a running Linux kernel connected
> to another Linux box via an asynchronous line. For this purpose,
> we are considering developping a new gdb target that interfaces
> with kdb. Has anyone ever tried to develop such a kdb target
> before ?
GDB has facilities for talking with ROM monitors. You simply tell GDB
what the monitor's prompt looks like, how it prints registers, how it
dumps memory, and so on, and GDB will act as a very fast typist. :)
Kdb's output might be close enough to a ROM monitor that this would
work.
gdb/monitor.h describes the general principles, and any gdb/*-rom.c
file can furnish an example.
Another thing to look at is kgdb from Sun Microsystems.
Unfortunately, I don't know many of the details (esp. the precise
url). If you do a search at www.sun.com it should find it.