[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 01974) Re: How to trace linux kernel like FreeBSD does with a serial cable using gdb ?¿



I have used the kdb-xxx patches with the kernel, usagi and vanilla, to
trace core dumps. They are available from oss.sgi.com or sourceforge IIRC.  These
patches allow one to do limited debugging on the console if the kernel
crashes (may do more; I am not sure).

I have heard that there is also a "kdbg" patch which lets you attach gdb
to a running kernel via a serial link. No personal experience, though.
Do a google search.

There is also a user-mode-linux patch, which allows one to run the linux
kernel as a process (and thus under full control of gdb).  This is an
invaluable tool for certain kinds of debugging (like hacking network
stacks), though not as useful for other things (device driver thingies).

On Fri, Nov 08, 2002 at 02:30:47PM +0100, Juan Francisco Rodriguez Hervella wrote:
> Hello:
> 
> The subject is enough to tell you what Im looking for...
> 
> I've traced the FreeBSD kernel, but I don't know how to
> do the same with Linux... I'd like to use gdb capabilities
> using a remote host to trace the Linux kernel....
> 
> Could someone explain me/link me to how to do this ?
> 
> Thanks!
> 
> -- 
> JFRH.
> 
---end quoted text---

-- 
Sincerely,
Parijat Mishra
R & D Engineer,
Institute for Communications Research
Tel: (65)68709353