0. download bochs 2.3
search it in www.mirrorservice.org and download it here, and then decompress
it.
1. compile me with gdbstub support:
$ cd bochs-2.3.7
$ ./configure --enable-plugins --enable-disasm --enable-gdb-stub
2. start kernel in bochs
$ cd linux-0.11
$ tools/bochs/bochs-2.3.7/bochs -q -f tools/bochs/bochsrc/bochrc-hd.bxrc
or
$ make bochs-start
3. debug kernel with bochs gdbstub
start the kernel with bochs gdbstub
$ cd linux-0.11
$ make bochs-debug
and then start the gdb to connect the 1234 port
$ cd linux-0.11
$ gdb -q tools/system
(gdb) break main
(gdb) target remote :1234
(gdb) s
(gdb) ...