Subject: Re: reaching ddb via Stealth Serial Port on G3 b&w
To: =?iso-8859-1?q?Timo_Sch=F6ler?= <wanker4freedom@web.de>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: port-macppc
Date: 03/03/2005 11:45:59
Timo Sch=F6ler <wanker4freedom@web.de> writes:
> if so, the manual says that the Griffin Stealth uses the scca device
I'm using a GeeThree serial port in my G4/400 (essentially the same
thing), and scca is correct.
>=20
> is this sufficient?
>=20
> #options DDB # in-kernel debugger
> #options DDB_HISTORY_SIZE=3D100 # enable history editing
Uncomment these. You're probably more interested in DDB than KGDB for
providing, say, backtraces from crashes.
> and uncomment (or add) the following three lines:
>=20
> options KGDB # remote debugger
> options "KGDB_DEVNAME=3D\"com\"",KGDB_DEVADDR=3D0x3f8,KGDB_DEVRATE=3D=
9600
> makeoptions DEBUG=3D"-g" # compile full symbol table
>=20
> is wonder because the remote debuggers' device name is 'com', and i
> don't know whether 0x3f8 fits in.
Those are i386-centric options - I'll see about noting that in the
kgdb.html documentation. If you want to run kgdb on a macppc system
with a serial port on scca, you could set KGDB_DEVNAME to "scca", but
it's the default, and KGDB_DEVADDR is not needed at all (on the x86,
it's the ISA I/O address of the port). KGDB_DEVRATE can be set if you
like; it defaults to 19200, and you'd rather run faster if you can -
(57600 might be the limit, but my console seems to run well at that
speed).
Recap: Just "options KGDB" is enough to get kgdb going on scca at
19200. But you probably want DDB instead.
- Nathan