Add a qemu debug option and gdb init file.

This commit is contained in:
Drew Galbraith 2023-05-17 22:46:19 -07:00
parent 03fe4d8c2e
commit 3e1a1f7485
2 changed files with 9 additions and 1 deletions

3
.gdbinit Normal file
View File

@ -0,0 +1,3 @@
target remote localhost:1234
file builddbg/zion/zion
break zion

View File

@ -19,6 +19,11 @@ add_custom_command(
) )
add_custom_target(qemu add_custom_target(qemu
COMMAND qemu-system-x86_64 -d guest_errors -m 1G -serial stdio -hda disk.img --boot c COMMAND qemu-system-x86_64 -d guest_errors -m 1G -serial stdio -hda disk.img
DEPENDS disk.img
USES_TERMINAL)
add_custom_target(qemu-dbg
COMMAND qemu-system-x86_64 -d guest_errors -m 1G -serial stdio -hda disk.img -S -s
DEPENDS disk.img DEPENDS disk.img
USES_TERMINAL) USES_TERMINAL)