Started implementing debugging facilities
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
QEMU := qemu-system-x86_64
|
||||
QEMU_FLAGS := -m 64M -smp 4
|
||||
|
||||
ARCH_TEMP_FILES := $(BUILDDIR)/$(KERNEL_EXEC).elf32
|
||||
|
||||
@@ -16,8 +17,13 @@ run: $(BUILDDIR)/$(KERNEL_EXEC) $(BUILDDIR)/$(KERNEL_EXEC).elf32
|
||||
@$(QEMU) -kernel $(BUILDDIR)/$(KERNEL_EXEC).elf32
|
||||
|
||||
debug: $(BUILDDIR)/$(KERNEL_EXEC) $(BUILDDIR)/$(KERNEL_EXEC).elf32
|
||||
@echo " \033[1;93mBOOT\033[0m $<"
|
||||
@echo " \033[1;93mDEBUG\033[0m $<"
|
||||
|
||||
@./tools/kernel-debug/debug_session.sh \
|
||||
tools/kernel-debug/gdb_session_init \
|
||||
tools/kernel-debug/lldb_session_init \
|
||||
$(QEMU) \
|
||||
-kernel $(BUILDDIR)/$(KERNEL_EXEC).elf32 -S -s \
|
||||
-curses -serial file:socks.log $(QEMU_FLAGS)
|
||||
|
||||
|
||||
@$(QEMU) \
|
||||
-kernel $(BUILDDIR)/$(KERNEL_EXEC).elf32 -S -s \
|
||||
-monitor stdio
|
||||
|
||||
Reference in New Issue
Block a user