diff --git a/.gdbinit b/.gdbinit new file mode 100644 index 0000000..568ed61 --- /dev/null +++ b/.gdbinit @@ -0,0 +1,3 @@ +target remote localhost:1234 +file builddbg/zion/zion +break zion diff --git a/CMakeLists.txt b/CMakeLists.txt index 19ba2aa..36d3e3e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,11 @@ add_custom_command( ) 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 USES_TERMINAL)