Re: What do you use for kernel debugging

Bill Hawes (
Thu, 18 Dec 1997 09:13:58 -0500

Mahesh Jethanandani wrote:

> I am new to Linux kernel and its debugging. What can I use to debug the
> kernel? I have tried gdbstub-2.0.30 but it gets an exception when
> gdbstub is started on the target machine.I am trying to debug a 2.0.30
> kernel that I got from installing Redhat 4.2. Any pointers will be
> helpful.

I would recommend studying the code carefully so that you understand
what it's doing, and inserting a printk message if there's some unusual
event you want to catch.