[CentOS] How do I debug the kernel?

Rodrigo Barbosa rodrigob at darkover.org
Thu Mar 22 20:34:19 UTC 2007

Hash: SHA1

On Thu, Mar 22, 2007 at 04:25:41PM -0400, Lists wrote:
> On Tue, 6 Mar 2007, Rodrigo Barbosa wrote:
> >On Tue, Mar 06, 2007 at 01:01:48PM -0500, Mark Hull-Richter wrote:
> >>Probably an odd question, but, as I have said many times before, I'm
> >>more than a little bit rusty on this stuff.  I know I can use gdb to
> >>debug the running kernel, but I'm not sure how to invoke it properly for
> >>CentOS.
> >>
> >>Please advise.
> >
> >Using gdb to debug the kernel is not an easy trick. You will need
> >a kgdb patch for the kernel, and 2 computers. 1 for running the kernel,
> >and one for the debuger. These computers should be connected using a
> >serial (RS232) cable.
> >
> Would VMWare let you run the kernel you're debugging in a VM and watch it 
> from the host?

That is a very good question. Last time I used kgdb, it was done using a
serial (RS232) cable. These days, I really don't know.

- -- 
Rodrigo Barbosa
"Quid quid Latine dictum sit, altum viditur"
"Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)

Version: GnuPG v1.4.5 (GNU/Linux)


More information about the CentOS mailing list