diff options
author | Freya Murphy <freya@freyacat.org> | 2025-03-25 18:00:51 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-03-25 18:00:51 -0400 |
commit | 3152b2ae078f83145774d2dbfaf6f471b8b766e8 (patch) | |
tree | c730760860824a452daaf4a04f9fd8c738a63929 | |
parent | remove legacy bullshit (diff) | |
download | comus-3152b2ae078f83145774d2dbfaf6f471b8b766e8.tar.gz comus-3152b2ae078f83145774d2dbfaf6f471b8b766e8.tar.bz2 comus-3152b2ae078f83145774d2dbfaf6f471b8b766e8.zip |
more qemu opts and gdb
-rw-r--r-- | Makefile | 15 | ||||
-rw-r--r-- | util/gdbinit (renamed from util/gdbinit.tmpl) | 4 |
2 files changed, 15 insertions, 4 deletions
@@ -3,11 +3,22 @@ .SILENT: QEMU = qemu-system-i386 -QEMUOPTS = -drive file=bin/disk.img,index=0,media=disk,format=raw +QEMUOPTS = -drive file=bin/disk.img,index=0,media=disk,format=raw \ + -no-reboot -d cpu_reset \ + -serial mon:stdio \ + -m 4G \ + -display sdl \ + -enable-kvm \ + -name kern qemu: bin/disk.img - $(QEMU) -serial mon:stdio $(QEMUOPTS) + $(QEMU) $(QEMUOPTS) +qemu-gdb: bin/disk.img + $(QEMU) $(QEMUOPTS) -S -gdb tcp::1337 + +gdb: + gdb -q -n -x util/gdbinit clean: rm -fr .zig-cache diff --git a/util/gdbinit.tmpl b/util/gdbinit index d9a981d..ca2c885 100644 --- a/util/gdbinit.tmpl +++ b/util/gdbinit @@ -20,8 +20,8 @@ define hook-stop set $lastcs = $cs end -echo + target remote localhost:1234\n -target remote localhost:1234 +echo + target remote localhost:1337\n +target remote localhost:1337 # If this fails, it's probably because your GDB doesn't support ELF. # Look at the tools page at |