Skip to content

debugging bochs with gdb

February 25, 2013

First, bochs must be built with gdb support. Fortunately bochs-gdb is available in the Fedora repos. Then a line must be added to the .bochsrc file so that it opens up a port for a gdb connection:

gdbstub: enabled=1, port=1234, text_base=0, data_base=0, bss_base=0

Now when bochs-gdb is launched it will wait for a gdb connection.

$ gdb
(gdb) target remote localhost:1234

…and that’s it!

Leave a Comment

Leave a comment