mirror of
https://github.com/kenshineto/kern.git
synced 2025-04-20 17:27:24 +00:00
more qemu opts and gdb
This commit is contained in:
parent
9b26a288ae
commit
3152b2ae07
2 changed files with 15 additions and 4 deletions
15
Makefile
15
Makefile
|
@ -3,11 +3,22 @@
|
||||||
.SILENT:
|
.SILENT:
|
||||||
|
|
||||||
QEMU = qemu-system-i386
|
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: 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:
|
clean:
|
||||||
rm -fr .zig-cache
|
rm -fr .zig-cache
|
||||||
|
|
|
@ -20,8 +20,8 @@ define hook-stop
|
||||||
set $lastcs = $cs
|
set $lastcs = $cs
|
||||||
end
|
end
|
||||||
|
|
||||||
echo + target remote localhost:1234\n
|
echo + target remote localhost:1337\n
|
||||||
target remote localhost:1234
|
target remote localhost:1337
|
||||||
|
|
||||||
# If this fails, it's probably because your GDB doesn't support ELF.
|
# If this fails, it's probably because your GDB doesn't support ELF.
|
||||||
# Look at the tools page at
|
# Look at the tools page at
|
Loading…
Add table
Reference in a new issue