aboutsummaryrefslogtreecommitdiffstats
path: root/common.mk
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-25 15:58:27 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-25 15:58:27 +0000
commite98f7e1eaa18c33d211e6a0cf245eaf4b175c3c7 (patch)
treed5d9d7db63d2bbe658e9968470e1d3c48481f3ba /common.mk
parentfd6f1f0a7174a412007f24d669790624927fb965 (diff)
downloadruby-e98f7e1eaa18c33d211e6a0cf245eaf4b175c3c7.tar.gz
* common.mk: change "gdb" rule. You can debug miniruby with
$(srcdir)/test.rb on gdb by this rule (type "make gdb"). If you write break points to "breakpoints.gdb" on $srcdir, gdb runs with this file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/common.mk b/common.mk
index e2618db36f..293966d1c5 100644
--- a/common.mk
+++ b/common.mk
@@ -617,10 +617,12 @@ vmasm: vm.$(ASMEXT)
# vm.o : CFLAGS += -fno-crossjumping
run.gdb:
- echo b ruby_debug_breakpoint > run.gdb
- # echo handle SIGINT nostop >> run.gdb
- # echo handle SIGPIPE nostop >> run.gdb
- echo run >> run.gdb
+ echo b ruby_debug_breakpoint > run.gdb
+ echo '# handle SIGINT nostop' >> run.gdb
+ echo '# handle SIGPIPE nostop' >> run.gdb
+ echo '# b rb_longjmp' >> run.gdb
+ echo source $(srcdir)/breakpoints.gdb >> run.gdb
+ echo run >> run.gdb
gdb: miniruby$(EXEEXT) run.gdb PHONY
gdb -x run.gdb --quiet --args $(MINIRUBY) -I$(srcdir)/lib $(srcdir)/test.rb