aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2019-02-27 15:42:18 +0000
committerAlex Bennée <alex.bennee@linaro.org>2019-03-12 17:05:21 +0000
commitd0ce6257c660d202aff160eedbc359e1e8653a30 (patch)
tree0c1e5f07f3ccff6968dd3ec39b590375e2873d92 /tests/tcg
parentfdfda70e282a6983b6f46e942162e14621ca268f (diff)
downloadqemu-d0ce6257c660d202aff160eedbc359e1e8653a30.zip
qemu-d0ce6257c660d202aff160eedbc359e1e8653a30.tar.gz
qemu-d0ce6257c660d202aff160eedbc359e1e8653a30.tar.bz2
tests/tcg: add gdb runner variant
With this you can launch a test in gdb with: cd $(BUILD)/tests make -f $(SRC)/tests/tcg/Makefile gdb-$(TEST_NAME) Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'tests/tcg')
-rw-r--r--tests/tcg/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile
index d26a36d..8dfd1a7 100644
--- a/tests/tcg/Makefile
+++ b/tests/tcg/Makefile
@@ -128,6 +128,9 @@ run-%: %
"$< on $(TARGET_NAME)")
endif
+gdb-%: %
+ gdb --args $(QEMU) $(QEMU_OPTS) $<
+
.PHONY: run
run: $(RUN_TESTS)