x86_64: build: add rule to debug using ncurses

This commit is contained in:
2023-02-08 20:24:49 +00:00
parent 5e10f566a4
commit cb6b400fae

View File

@@ -30,3 +30,10 @@ debug: $(BUILD_DIR)/$(KERNEL_EXEC) $(BUILD_DIR)/$(KERNEL_EXEC).elf32
-monitor stdio -serial file:$(BUILD_DIR)/socks.log $(QEMU_FLAGS)
debug-curses: $(BUILD_DIR)/$(KERNEL_EXEC) $(BUILD_DIR)/$(KERNEL_EXEC).elf32
@./tools/kernel-debug/debug_session.sh \
tools/kernel-debug/gdb_session_init \
tools/kernel-debug/lldb_session_init \
$(QEMU) \
-kernel $(BUILD_DIR)/$(KERNEL_EXEC).elf32 -S -s \
-display curses -serial file:$(BUILD_DIR)/socks.log $(QEMU_FLAGS) > build/qemu.log