diff --git a/Makefile b/Makefile index 1ab9c40..e091959 100644 --- a/Makefile +++ b/Makefile @@ -51,6 +51,10 @@ image: boot kernel run: default $(QEMU) -drive format=raw,file=$(BUILD_DIR)/os_image +gdb: default + # Need to have GEF installed for this to work + $(QEMU) -drive format=raw,file=$(BUILD_DIR)/os_image -s -S & gdb -ex "gef-remote --qemu-user localhost 1234" build/kernel.elf + dockerun: $(QEMU) -drive format=raw,file=$(BUILD_DIR)/os_image