QEmu

From Go-OS

Jump to: navigation, search
五OS on QEmu

QEmu is a nice, light and free virtual machine software.

http://fabrice.bellard.free.fr/qemu/

Contents

五OS and QEmu

Supported hardware

  • Graphic adaptater
  • Keyboard
  • Primary/secondary IDE

Unsupported hardware

  • Everything else

GDB debugging

By passing options -s -S to qemu, you can enable debugging mode. The kernel should be compiled with flags -g -ggdb to enable symbol resolving.

gdb is broken while debugging non-64bit code in a 64bit system. See [1].

Run gdb in another shell and type:

set arch i386:x86-64
set can-use-hw-watchpoints 0
target remote :1234
add-symbol-file sys/kernel/kernel.elf 0xffffffffc0001000
y
add-symbol-file sys/kernel/kernel.elf 0x201000
y
break *0x201000
c

Notes for MT

print /x *(unsigned int*)0x10000
Retrieved from "http://5os.net/wiki/QEmu"