diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-25 15:58:27 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-25 15:58:27 +0000 |
commit | e98f7e1eaa18c33d211e6a0cf245eaf4b175c3c7 (patch) | |
tree | d5d9d7db63d2bbe658e9968470e1d3c48481f3ba /common.mk | |
parent | fd6f1f0a7174a412007f24d669790624927fb965 (diff) | |
download | ruby-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.mk | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |