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 | b9010f7a196729fefe1de05890afbf7a08445537 (patch) | |
| tree | d5d9d7db63d2bbe658e9968470e1d3c48481f3ba /common.mk | |
| parent | 8339f342f6f580eb3f7ecd3896e87f70f6aeb048 (diff) | |
| download | ruby-b9010f7a196729fefe1de05890afbf7a08445537.tar.gz ruby-b9010f7a196729fefe1de05890afbf7a08445537.tar.xz ruby-b9010f7a196729fefe1de05890afbf7a08445537.zip | |
* 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: http://svn.ruby-lang.org/repos/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 |
