From owner-freebsd-questions Tue Jun 19 17:55: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from rye.elite.net (rye.elite.net [205.199.220.6]) by hub.freebsd.org (Postfix) with ESMTP id 092FA37B403 for ; Tue, 19 Jun 2001 17:55:01 -0700 (PDT) (envelope-from nate@elite.net) Received: from almond.elite.net (root@almond.elite.net [205.199.220.5]) by rye.elite.net (8.9.3/8.9.3) with ESMTP id RAA98790 for ; Tue, 19 Jun 2001 17:55:00 -0700 (PDT) Received: (nate@localhost) by almond.elite.net (8.8.3/8.6.12) id RAA15773; Tue, 19 Jun 2001 17:55:00 -0700 (PDT) Date: Tue, 19 Jun 2001 17:55:00 -0700 (PDT) From: Nate Lawson To: freebsd-questions@freebsd.org Subject: GDB remote not working Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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