diff --git a/Makefile.example b/Makefile.example index aa188c22..d96765aa 100644 --- a/Makefile.example +++ b/Makefile.example @@ -128,17 +128,20 @@ qemu: newlib tools $(NAME).elf $(QEMU) -monitor stdio -serial tcp::12346,server,nowait -smp $(SMP) -net nic,model=rtl8139 -net user,hostfwd=tcp::12345-:4711 -kernel metalsvm.elf -initrd tools/initrd.img qemudbg: newlib tools $(NAME).elf - $(QEMU) -s -S -monitor stdio -serial tcp::12346,server -smp $(SMP) -net nic,model=rtl8139 -net user,hostfwd=tcp::12345-:4711 -kernel metalsvm.elf -initrd tools/initrd.img + $(QEMU) -s -S -nographic -monitor stdio -serial tcp::12346,server -smp $(SMP) -net nic,model=rtl8139 -net user,hostfwd=tcp::12345-:4711 -kernel metalsvm.elf -initrd tools/initrd.img gdb: $(NAME).elf $(GDB) -q -x script.gdb debug: newlib tools $(NAME).elf + killall $(QEMU) || true + killall $(GDB) || true + sleep 1 gnome-terminal --working-directory=$(TOPDIR) \ - --tab --title=Debug --command="bash -c 'sleep 1 && telnet localhost 12346'" \ --tab --title=Shell --command="bash -c 'sleep 1 && telnet localhost 12345'" \ --tab --title=QEmu --command="make qemudbg" \ - --tab --title=GDB --command="make gdb" + --tab --title=GDB --command="make gdb" \ + --tab --title=Debug --command="bash -c 'sleep 1 && telnet localhost 12346'" clean: $Q$(RM) $(NAME).elf $(NAME).sym *~