Date: Tue, 20 Apr 2004 08:23:29 -0700 From: Marcel Moolenaar <marcel@xcllnt.net> To: "William M. Grim" <wgrim@siue.edu> Cc: hackers@freebsd.org Subject: Re: Remote Debugging using GDB on Linux Message-ID: <20040420152329.GA4238@dhcp01.pn.xcllnt.net> In-Reply-To: <4084DCB4.9020404@siue.edu> References: <4084DCB4.9020404@siue.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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, -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040420152329.GA4238>