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