How to go about kernel debugging
I am working on the implementation of cross layer design issues in networking.I have downloaded the kernel source code for linux-220.127.116.11.The kgdb patch is aslo downloaded.I have set up 2 machines-development and target for debugging.These 2 machines are connected via serial cable.I start the gdb on development machine.My target system waits at Uncompressing Linux.Ok Booting kernel for sometime and then boots properly.
I want to know how to debug the kernel.If i insert a module how to go about debugging it.What commands are supposed to be given.And which commands are supposed to be given where-i.e:target machine or development machine.
Could anybody help!!!!!!!!!