Subject: Re: Does kgdb work on mac68k?
To: Dave Huang <khym@bga.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-mac68k
Date: 07/19/1997 17:54:41
On Sat, 19 Jul 97 19:54:34 EDT 
 Dave Huang <khym@bga.com> wrote:

 > I notice that the GENERIC kernel config has KGDB stuff in it
 > (commented out), but I tried to build a kernel with kgdb, and the link
 > failed because it couldn't find kgdb_acc... sys/kern/kgdb_stub.c
 > references it, and the i386 port has it in
 > sys/arch/i386/i386/kgdb_machdep.c, but I didn't see it anywhere in
 > arch/mac68k. The arch/m68k dir has a kgdb_m68k.c, which I think has
 > everything in the i386's kgdb_machdep.c, except for kgdb_acc().
 > 
 > So, is this supposed to work? :)

for the kgbd_machdep.c bits, you should be able to grab the hp300's and
use it unmodified.  For the rest, well, I make sure the "trap 15" handler
is in sync with the hp300's version (in locore.s), and then you have to
add teh serial driver goop (you'll steal this from the sun3 port, for the
most part, probably).

...I haven't done all of the necessary things in trap() yet, for the hp300,
but this ought to at least get you started.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939