X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/b632f535c4a6882bdca0317fb88cbe6e165f24eb..7b8a1bcad75628f9add4590db2bb9b8e418ee8eb:/lunaix-os/makefile diff --git a/lunaix-os/makefile b/lunaix-os/makefile index af90c06..4e0ea86 100644 --- a/lunaix-os/makefile +++ b/lunaix-os/makefile @@ -74,8 +74,6 @@ instable: CFLAGS := -g -std=gnu99 -ffreestanding $(O) $(W) $(ARCH_OPT) -D__LUNAI instable: all all-debug: bootable-debug - @echo "Dumping the disassembled kernel code to $(kbuild_dir)/kdump.txt" - @i686-elf-objdump -S $(kbin) > $(kbuild_dir)/kdump.txt clean: @rm -rf $(kbuild_dir) || exit 1 @@ -91,8 +89,7 @@ debug-qemu: all-debug @i686-elf-objcopy --only-keep-debug $(kbin) $(kbuild_dir)/kernel.dbg @qemu-system-i386 $(call get_qemu_options,$(kimg)) @sleep 1 - @$(QEMU_MON_TERM) -- telnet 127.0.0.1 $(QEMU_MON_PORT) - @gdb -s $(kbuild_dir)/kernel.dbg -ex "target remote localhost:1234" + @QMPORT=$(QEMU_MON_PORT) gdb $(kbin) -ex "target remote localhost:1234" debug-qemu-vscode: all-debug @i686-elf-objcopy --only-keep-debug $(kbin) $(kbuild_dir)/kernel.dbg