tests/tcg: add gdb runner variant
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 27 Feb 2019 15:42:18 +0000 (15:42 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 12 Mar 2019 17:05:21 +0000 (17:05 +0000)
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>
tests/tcg/Makefile

index d26a36df61be86312318f811ac39054d3c395c74..8dfd1a76b9131ca7601068d872ae8c5fb0457f52 100644 (file)
@@ -128,6 +128,9 @@ run-%: %
          "$< on $(TARGET_NAME)")
 endif
 
+gdb-%: %
+       gdb --args $(QEMU) $(QEMU_OPTS) $<
+
 .PHONY: run
 run: $(RUN_TESTS)