From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 20 13:37:24 2004 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 49F5816A4CE for ; Tue, 20 Apr 2004 13:37:24 -0700 (PDT) Received: from siue.dnsalias.net (student143-123.bh.siue.edu [146.163.143.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 161E743D39 for ; Tue, 20 Apr 2004 13:37:24 -0700 (PDT) (envelope-from wgrim@siue.edu) Received: from siue.edu (unknown [192.168.0.90]) by siue.dnsalias.net (Postfix) with ESMTP id 73468234676; Tue, 20 Apr 2004 15:37:23 -0500 (CDT) Message-ID: <4085895D.2020109@siue.edu> Date: Tue, 20 Apr 2004 15:34:37 -0500 From: "William M. Grim" Organization: SIUE User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3 X-Accept-Language: en MIME-Version: 1.0 To: Marcel Moolenaar References: <4084DCB4.9020404@siue.edu> <20040420152329.GA4238@dhcp01.pn.xcllnt.net> In-Reply-To: <20040420152329.GA4238@dhcp01.pn.xcllnt.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: Remote Debugging using GDB on Linux 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: Tue, 20 Apr 2004 20:37:24 -0000 Marcel Moolenaar wrote: >On Tue, Apr 20, 2004 at 03:17:56AM -0500, William M. Grim wrote: > > >>Hi! >> >>Is it possible to do remote debugging of the FreeBSD kernel over a >>serial connection using Linux? FreeBSD has a special "-k" switch that >>Linux does not for GDB; so, I'm not even sure it's possible without a >>lot of work. >> >> > >Most of the logic is in the gdb stub, which lives in the kernel. You >don't have to use -k to be able to remote debug the kernel. It may >have to be a cross-debugger (host=*-*-linux*, target=*-*-freebsd*). >In principle it should not be necessary, provided the host and target >architectures are the same. > >In short: try it. chances are it works. If not, try with a cross-gdb. > >HTH, > > > No problem. Once my serial cable gets here I will try it. Thanks. -- William Michael Grim Student, Southern Illinois University at Edwardsville Unix Network Administrator, SIUE, Computer Science dept. Phone: (217) 341-6552 Email: wgrim@siue.edu