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 a8b9240 commit bbb5832Copy full SHA for bbb5832
Makefile
@@ -116,9 +116,16 @@ QEMUGDB = $(shell if $(QEMU) -help | grep -q '^-gdb'; \
116
else echo "-s -p 15234"; fi)
117
118
debug: build/kernel .gdbinit
119
- $(QEMU) $(QEMUOPTS) -S $(QEMUGDB) &
120
- sleep 1
121
- $(GDB)
+ @tmux new-session -d \
+ $(QEMU) $(QEMUOPTS) -S $(QEMUGDB) && \
+ tmux split-window -h "$(GDB) -ex 'target remote localhost:15234'" && \
122
+ tmux -2 attach-session -d
123
+
124
+gdbserver: build/kernel
125
+ $(QEMU) $(QEMUOPTS) -S $(QEMUGDB)
126
127
+gdbclient:
128
+ $(GDB) -ex "target remote localhost:15234"
129
130
CHAPTER ?= $(shell git rev-parse --abbrev-ref HEAD | grep -oP 'ch\K[0-9]')
131
0 commit comments