feat: owloysius - dynamic init function invocator
[lunaix-os.git] / lunaix-os / makefile
index af07f60420e38e2efa911775856cdd954a27bf5b..4e0ea8662dc7bf4b35d71a6df59e5d922e5f230f 100644 (file)
@@ -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,7 +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
-       @QMPORT=$(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