We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f00252 commit ea675b5Copy full SHA for ea675b5
Makefile
@@ -102,6 +102,13 @@ QEMUGDB = $(shell if $(QEMU) -help | grep -q '^-gdb'; \
102
else echo "-s -p 15234"; fi)
103
104
debug: build/kernel .gdbinit
105
- $(QEMU) $(QEMUOPTS) -S $(QEMUGDB) &
106
- sleep 1
107
- $(GDB)
+ @tmux new-session -d \
+ $(QEMU) $(QEMUOPTS) -S $(QEMUGDB) && \
+ tmux split-window -h "$(GDB) -ex 'target remote localhost:15234'" && \
108
+ tmux -2 attach-session -d
109
+
110
+gdbserver: build/kernel
111
+ $(QEMU) $(QEMUOPTS) -S $(QEMUGDB)
112
113
+gdbclient:
114
+ $(GDB) -ex "target remote localhost:15234"
0 commit comments