Merge branch 'qemu_improvements' into 'master'

Couple more qemu improvements

See merge request redox-os/redox!1635
This commit is contained in:
Jeremy Soller 2025-08-24 14:25:37 -06:00
commit 6eda4b8aac
2 changed files with 5 additions and 2 deletions

View File

@ -101,7 +101,7 @@ gdb: FORCE
# has started or you need to debug the interaction between the application and the kernel.
# tl;dr: DO NOT USE THIS TARGET UNLESS YOU HAVE TO
gdb-userspace: FORCE
rust-gdb $(GDB_APP_FILE) --eval-command="add-symbol-file $(GDB_KERNEL_FILE) 0x$(shell readelf -S $(GDB_KERNEL_FILE) | grep .text | cut -c43-58)" --eval-command="target remote :1234"
rust-gdb $(GDB_APP_FILE) --eval-command="add-symbol-file $(GDB_KERNEL_FILE)" --eval-command="target remote :1234"
# An empty target
FORCE:

View File

@ -22,6 +22,7 @@ ifeq ($(ARCH),i686)
endif
else ifeq ($(ARCH),x86_64)
gpu?=vga
uefi?=yes
VGA_SUPPORTED=yes
QEMU_ARCH=x86_64
QEMU_MACHINE?=q35
@ -90,7 +91,6 @@ else ifeq ($(ARCH),aarch64)
endif
else ifeq ($(ARCH),riscv64gc)
live=no
efi=yes
audio=no
gpu?=ramfb
net=bridge
@ -272,6 +272,9 @@ endif
ifeq ($(gdb),yes)
QEMUFLAGS+=-d cpu_reset -s -S
else ifeq ($(gdb),nonblock)
# Allow attaching gdb, but don't block for it
QEMUFLAGS+=-d cpu_reset -s
endif
ifeq ($(UNAME),Linux)