Don't eat errors in debug Makefile.
[riscv-tests.git] / debug / Makefile
index 90ee25c6720e369953e5f7636b74f05065687c43..a5ea832645719116a01f659147fdae417795aeef 100644 (file)
@@ -12,9 +12,10 @@ pylint:
        pylint --rcfile=pylint.rc `git ls-files '*.py'`
 
 %.log:
+       set -o pipefail; \
        $(GDBSERVER_PY) \
                --isolate \
-               targets/RISC-V/$(subst .log,.py,$@) \
+               $(src_dir)/targets/RISC-V/$(subst .log,.py,$@) \
                --sim_cmd $(RISCV)/bin/$(RISCV_SIM) \
                --server_cmd $(RISCV)/bin/openocd \
            | tee $@ 2>&1 || (sed s/^/$@:\ / $@ && false)