diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-05-24 19:14:26 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-05-24 22:03:28 +0530 |
commit | bac72091a55a9567f5c07851247d266d50772607 (patch) | |
tree | c01db153036fe9268d9c7c9df30b3bd8ec652f15 | |
parent | c680eac8d940bc2e0c6fd1979e58148bfe99fcbb (diff) |
build: add a QEMU debug target
-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 |