Add a mtrace-nox target to the Makefile.

上级 471c0c15
...@@ -206,6 +206,7 @@ ifndef CPUS ...@@ -206,6 +206,7 @@ ifndef CPUS
CPUS := 2 CPUS := 2
endif endif
QEMUOPTS = -hdb fs.img xv6.img -smp $(CPUS) QEMUOPTS = -hdb fs.img xv6.img -smp $(CPUS)
MTRACEOPTS = -mtrace-enable -mtrace-file /tmp/mtrace-$(shell whoami).out
qemu: fs.img xv6.img qemu: fs.img xv6.img
$(QEMU) -serial mon:stdio $(QEMUOPTS) $(QEMU) -serial mon:stdio $(QEMUOPTS)
...@@ -216,6 +217,9 @@ qemu-memfs: xv6memfs.img ...@@ -216,6 +217,9 @@ qemu-memfs: xv6memfs.img
qemu-nox: fs.img xv6.img qemu-nox: fs.img xv6.img
$(QEMU) -nographic $(QEMUOPTS) $(QEMU) -nographic $(QEMUOPTS)
mtrace-nox: fs.img xv6.img
$(QEMU) -nographic $(QEMUOPTS) $(MTRACEOPTS)
.gdbinit: .gdbinit.tmpl .gdbinit: .gdbinit.tmpl
sed "s/localhost:1234/localhost:$(GDBPORT)/" < $^ > $@ sed "s/localhost:1234/localhost:$(GDBPORT)/" < $^ > $@
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论