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