Re: How do I debug the kernel?

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



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

Please take notice I haven't done this since the 2.0 days, so things
might have changed, but I don't expect they changed much.

[]s

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFF7bpTpdyWzQ5b5ckRAuT+AJ0So0IMKcJ725dopSrKQMV0pQJKkwCguWPG
SgUImOKkrLF8bohwbY2/zvU=
=Ycpe
-----END PGP SIGNATURE-----
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux