From e91160f7579a572e198067b9c0697c91be1876e7 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 5 Jan 2021 16:48:43 +0900 Subject: [PATCH] set RUBY_ON_BUG on runruby rule. set RUBY_ON_BUG='gdb -x $(srcdir)/.gdbinit -p' to catch SEGV on `make runruby` rule. --- common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.mk b/common.mk index fe6c5cfba7..b89605ed2f 100644 --- a/common.mk +++ b/common.mk @@ -1213,7 +1213,7 @@ run: fake miniruby$(EXEEXT) PHONY $(BTESTRUBY) $(RUNOPT0) $(TESTRUN_SCRIPT) $(RUNOPT) runruby: $(PROGRAM) PHONY - $(RUNRUBY) $(RUNOPT0) $(TESTRUN_SCRIPT) $(RUNOPT) + RUBY_ON_BUG='gdb -x $(srcdir)/.gdbinit -p' $(RUNRUBY) $(RUNOPT0) $(TESTRUN_SCRIPT) $(RUNOPT) parse: fake miniruby$(EXEEXT) PHONY $(BTESTRUBY) --dump=parsetree_with_comment,insns $(TESTRUN_SCRIPT)