From owner-freebsd-current@FreeBSD.ORG Thu Aug 4 15:44:13 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B201516A41F; Thu, 4 Aug 2005 15:44:13 +0000 (GMT) (envelope-from Lonnie.Vanzandt@ngc.com) Received: from xcgca810.northgrum.com (xcgca810.northgrum.com [208.12.122.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6373B43D46; Thu, 4 Aug 2005 15:44:13 +0000 (GMT) (envelope-from Lonnie.Vanzandt@ngc.com) Received: from xcgca800.northgrum.com ([157.127.103.70]) by xcgca810.northgrum.com with InterScan Messaging Security Suite; Thu, 04 Aug 2005 08:44:12 -0700 Received: from xcgco501.northgrum.com ([158.114.104.53]) by xcgca800.northgrum.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 4 Aug 2005 08:44:13 -0700 Received: from [192.168.217.128] ([158.114.106.12]) by xcgco501.northgrum.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 4 Aug 2005 09:43:55 -0600 From: Lonnie VanZandt Organization: Northrop Grumman To: freebsd-current@freebsd.org User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Disposition: inline Date: Thu, 4 Aug 2005 09:40:55 -0600 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200508040940.56172.lonnie.vanzandt@ngc.com> X-OriginalArrivalTime: 04 Aug 2005 15:43:55.0520 (UTC) FILETIME=[52594800:01C5990B] Cc: marcel@FreeBSD.org Subject: Missing a step in new(er) Remote gdb/kdb setup? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lonnie.vanzandt@ngc.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2005 15:44:13 -0000 Marcel Moolenaar - or anyone who has properly setup the new remote gdb/kdb, You are, I believe, the programmer for the revised remote kernel debug interface in FreeBSD 5.4. If so, perhaps you could advise me on why I might be receiving a "Ignoring packet error, continuing..." at startup from a command like: kgdb -r /dev/cuaa0 /tmp/kernel.debug I have verified that I have 9600 8N1 connectivity between the host and the target and have observed the opening handshake of the remote gdb protocol being sent from the host. I know the cable and the sios are ok because I verified that a getty login over the link worked find. I have worked with remote kernel debugging on other systems and even on FreeBSD in the 5.2.1 release prior to the gdb -k to kgdb switchover. So, I think I'm doing the right steps but perhaps something else has changed? I do have my sio flags set to 0x80 on the target and the target has option KDB, DDB, and GDB in it. The target drops into the kernel debugger on a Ctrl-Alt-Esc and steps into the gdb backend with ">gdb", ">s" commands. Is there a serial port baud rate setting I need to revise? Also, I properly turned off the getty in /etc/ttys on the target for the sio used as the debugger console. Also, how do I get rid of the libthread_db.so undefined symbol reference to ps_pglobal_lookup? Both host and target are 5.4 although the host is a 5.2.1 updated to 5.4RC3 updated to 5.4 RELEASE configuration... Lonnie VanZandt