From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 2 15:05:57 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 500A616A4DC; Wed, 2 Mar 2005 15:05:56 +0000 (GMT) Received: from magic.adaptec.com (magic.adaptec.com [216.52.22.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id C23DC43D3F; Wed, 2 Mar 2005 15:05:55 +0000 (GMT) (envelope-from Achim_Leubner@adaptec.com) Received: from redfish.adaptec.com (redfish.adaptec.com [162.62.50.11]) by magic.adaptec.com (8.11.6/8.11.6) with ESMTP id j22F5tr09851; Wed, 2 Mar 2005 07:05:55 -0800 Received: from nkse2k01.adaptec.com (nkse2k01.adaptec.com [172.28.193.32]) by redfish.adaptec.com (8.11.6/8.11.6) with ESMTP id j22F5sb00320; Wed, 2 Mar 2005 07:05:54 -0800 content-class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Date: Wed, 2 Mar 2005 16:05:53 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Remote kernel debugging using GDB Thread-Index: AcUfOVPlIC5DY8/BQ8eNZWbIqOaxLg== From: "Leubner, Achim" To: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Remote kernel debugging using GDB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 15:05:58 -0000 Hello all, =20 I want to do some remote kernel debugging using GDB on FreeBSD 5.3.=20 I connected host and target with a null-modem cable on COM1 and made a = debug kernel with "options GDB", "options DDB", "options KDB" and = "makeoptions DEBUG=3D-g" and I set the port flags of sio0 to 0x80. But if I start the debug kernel on the target machine with "boot -d" I = always get the message "GDB: no debug ports present" and if I want to = start GDB I get "The remote GDB backend could not be selected". In = "debug.kdb.available" I only see the ddb and "sysctl -w = debug.kdb.current=3Dgdb" fails. Does anybody know what=B4s going wrong here? Any help is greatly = appreciated. =20 Thanks, Achim Leubner ICP vortex GmbH / Adaptec Inc. Phone: +49-351-8718291 =20