[SeaBIOS] [Question] Debug Seabios by GDB with Qemu

Kevin O'Connor kevin at koconnor.net
Wed Jan 31 03:46:38 CET 2018

On Mon, Jan 29, 2018 at 02:18:45PM +0800, Liu, Jing2 wrote:
> Hello,
> I am using Seabios for qemu startup, and interested in the debugging by GDB
> to see how the bios works.
> Currently, I do it as https://www.seabios.org/Debugging said but met some
> problems so that couldn't move on. :(
> Could someone give some pointers on what I missed or have to do to enable
> the gdb debugging?
> Note:
> Arch: x86_64 PC
> 1.  After Qemu starts, I run "gdb out/rom32seg.o" in another session, and do
> "target remote localhost:1234", it warns me that
> "Selected architecture i386 is not compatible with reported target
> architecture i386:x86_64". But I didn't find any 64bit rom.

I'm not sure why you choose out/rom32seg.o - to debug the 32bit code,
you want to use out/rom.o.


More information about the SeaBIOS mailing list