Remote Debugging using GDB on Linux

William M. Grim wgrim at siue.edu
Tue Apr 20 13:37:24 PDT 2004


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 at siue.edu




More information about the freebsd-hackers mailing list