Subject: remote debugger help
To: None <netbsd-help@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@nomadiclab.com>
List: netbsd-help
Date: 05/10/2001 19:02:43
Hi!
I'm trying to setup remote kernel debugging so that
I can see whats wrong in my laptop:
http://mail-index.netbsd.org/current-users/2001/05/08/0002.html
I have followed the instructions in
http://www.netbsd.org/Documentation/kernel/kgdb.html
http://www.netbsd.org/Ports/i386/faq.html#kgdb
but for some reason I can't connect to the target. The target
just waits forever in the "kgdb waiting..." phase.
tip between the remote and target hosts work just fine if I reboot
the target with a GENERIC kernel so the cable is must be okey.
I have connected the serial cable into com0 (as I have only one
in each pc) in both ends and the target's config file has the
following settings:
options KGDB # remote debugger
options "KGDB_DEVNAME=\"com\"",KGDBADDR=0x3f8,KGDBRATE=9600
makeoptions DEBUG="-g" # compile full symbol table
In the remote host I have used this .gdbinit
file netbsd.gdb
set remotebreak 1
set remotebaud 9600
target remote /dev/tty00
In remote's /etc/ttys I have this:
tty00 "/usr/libexec/getty std.9600" unknown off local
Any ideas what could be wrong in my setup?
Martti
---
Martti Kuparinen <martti.kuparinen@nomadiclab.com>
http://www.iki.fi/~kuparine/