diff mbox series

[PULL,10/26] tests/tcg: add gdb runner variant

Message ID 20190312170931.25013-11-alex.bennee@linaro.org
State New
Headers show
Series final testing updates for 4.0 | expand

Commit Message

Alex Bennée March 12, 2019, 5:09 p.m. UTC
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>


-- 
2.20.1
diff mbox series

Patch

diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile
index d26a36df61..8dfd1a76b9 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)