diff options
-rw-r--r-- | cmake/run.cmake | 15 | ||||
-rw-r--r-- | kernel/CMakeLists.txt | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/cmake/run.cmake b/cmake/run.cmake index 60f19d1..eff08a1 100644 --- a/cmake/run.cmake +++ b/cmake/run.cmake @@ -42,3 +42,18 @@ add_custom_target(run-gdb DEPENDS iso USES_TERMINAL ) + +add_custom_target(run-debug + ${QEMU_SYSTEM_CMD} + ${QEMU_ARGUMENTS} + -serial stdio + -no-reboot + -no-shutdown + -d int + -M smm=off + + ${IGNORE_EXIT} + + DEPENDS iso + USES_TERMINAL +) diff --git a/kernel/CMakeLists.txt b/kernel/CMakeLists.txt index bc4d5bb..ba39d83 100644 --- a/kernel/CMakeLists.txt +++ b/kernel/CMakeLists.txt @@ -46,6 +46,7 @@ set(C_COMPILE_OPTIONS -fstack-protector-all # -O3 + -O0 -Wall -Wextra |