Date: Tue, 19 Jun 2001 17:55:00 -0700 (PDT) From: Nate Lawson <nate@elite.net> To: freebsd-questions@freebsd.org Subject: GDB remote not working Message-ID: <Pine.BSD.3.91.1010619172208.13978C-100000@almond.elite.net>
next in thread | raw e-mail | index | archive | help
I am working on debugging a FreeBSD target (snap 20010531) from a VMware FreeBSD 4.3R host. I am able to debug the same target machine booted into Linux + kgdb from a VMware Linux host just fine. I set up the FreeBSD kernel with options DDB and flags 0x80 on sio0 but whenever I do "target remote", it never connects to the target. Just to be sure the serial was still working, I had the target run a getty on ttyd0 and was able to cu into it from the host. I've tried both boot -d/gdb/s and CTRL-ALT-ESC/gdb/s after booted with the same result. I've also tried various combinations of CONSPEED/remotebaud. Finally, I did a boot -h and the host worked as a serial console just fine. I set remotedebug to see what was going on and it looks like the target is not getting or responding to any messages from the host: --- Sending packet: $Hc-1#09...Sending packet: $Hc-1#09...Sending packet: $Hc-1#09...Sending packet: $Hc-1#09... Timed out. Ignoring packet error, continuing... (Same for $qC#b4) (Same for $qOffsets#4b) Malformed response to offset query, timeout --- Thanks for any help, -Nate gdb commands: file kernel.debug set remotebreak 1 set remotedebug 1 set remotebaud 9600 target remote /dev/cuaa0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSD.3.91.1010619172208.13978C-100000>