At the time I worked on this the most recent patch was for 2.4.0-test9. To get kgdb working on the most recent kernel a few things had to be changed. Before you try this please make sure that a more recent patch is not available at the official kgdb site [ kgdb.sourceforge.net ]. This is also the pace you will find all the instructions on how to use kgdb.
Note that this patch is an independent work not tied at all to the kgdb project; it comes as is with no warranty of any kind - all I can say is that it worked for me.
After completing the below patch I have discovered that a similar undertaking has taken place for kernel 2.4.0; this can be found [ here ].
- First you will need to get the 2.4.1 kernel
[ linux-2.4.1.tar.gz ] or [ linux-2.4.1.tar.bz2 ]
- Then you will need Alan Cox's 2.4.1-ac19 patch
[ patch-2.4.1-ac19.gz ] or [ patch-2.4.1-ac19.bz2 ]
- Finally you will need the 2.4.1-ac19+gdb patch
[ 2.4.1-ac19 to 2.4.1-ac19+kgdb patch ]
As a public service I also made a patch that goes directly from 2.4.1 to 2.4.1-ac19+kgdb so that you can download the kernel and this patch and get it running right off the bat.
- Combined patch to go from 2.4.1 to 2.4.1-ac19+kgdb
[ patch_2.4.1_to_2.4.1-ac19+kgdb.gz ]
[ patch_2.4.1_to_2.4.1-ac19+kgdb.bz2 ]