Friday, September 13, 2013

short notes using KGDB on X86

Using kgdb, kdb and the kernel debugger internals
Using kgdb and the kgdb Internals

1.) Configure, Compile and Load the kernel
2.) Check the /pro/cmdline
bash-3.2# cat /proc/cmdline
rw root=/dev/ram0 ide_generic.probe_mask=0x0 kgdboc=ttyS0,9600,B
3.) Check sysfs
bash-3.2# cat /sys/module/kgdboc/parameters/kgdboc
4.) Trigger the kernel to kgdb
bash-3.2# echo g > /proc/sysrq-trigger
[  489.043906] SysRq : GDB
5.) gdb vmlinux
(gdb) target remote

Remote debugging using

Do what you want from here.
Enjoy debugging.......

No comments:

Post a Comment