summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2021-01-05 16:48:43 +0900
committerKoichi Sasada <ko1@atdot.net>2021-01-05 16:50:00 +0900
commite91160f7579a572e198067b9c0697c91be1876e7 (patch)
tree2fb5a5fcd74c6ecc03d862c890dfc6072434e013
parentb9c1b3f8d82b6f2517786b2f9e06683909af34c3 (diff)
set RUBY_ON_BUG on runruby rule.
set RUBY_ON_BUG='gdb -x $(srcdir)/.gdbinit -p' to catch SEGV on `make runruby` rule.
-rw-r--r--common.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.mk b/common.mk
index fe6c5cf..b89605e 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)