ruby-debug 0.10.5.rc1 → 0.10.5.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +54 -0
- data/Rakefile +34 -239
- metadata +15 -182
- data/test/base/base.rb +0 -77
- data/test/base/binding.rb +0 -22
- data/test/base/catchpoint.rb +0 -19
- data/test/base/load.rb +0 -44
- data/test/base/reload_bug.rb +0 -8
- data/test/cli/commands/catchpoint_test.rb +0 -24
- data/test/cli/commands/unit/regexp.rb +0 -36
- data/test/config.yaml +0 -8
- data/test/data/annotate.cmd +0 -29
- data/test/data/annotate.right +0 -139
- data/test/data/at-exit.cmd +0 -4
- data/test/data/at-exit.right +0 -12
- data/test/data/break_bad.cmd +0 -16
- data/test/data/break_bad.right +0 -26
- data/test/data/break_loop_bug.cmd +0 -5
- data/test/data/break_loop_bug.right +0 -15
- data/test/data/break_tracelines.cmd +0 -9
- data/test/data/break_tracelines.right +0 -17
- data/test/data/breakpoints-basename.cmd +0 -2
- data/test/data/breakpoints-basename.right +0 -10
- data/test/data/breakpoints.cmd +0 -37
- data/test/data/breakpoints.right +0 -96
- data/test/data/brkpt-class-bug.cmd +0 -9
- data/test/data/brkpt-class-bug.right +0 -18
- data/test/data/catch.cmd +0 -18
- data/test/data/catch.right +0 -41
- data/test/data/condition.cmd +0 -29
- data/test/data/condition.right +0 -67
- data/test/data/continue_bad.cmd +0 -4
- data/test/data/continue_bad.right +0 -9
- data/test/data/ctrl.cmd +0 -23
- data/test/data/ctrl.right +0 -70
- data/test/data/display.cmd +0 -24
- data/test/data/display.right +0 -44
- data/test/data/dollar-0.right +0 -3
- data/test/data/dollar-0a.right +0 -3
- data/test/data/dollar-0b.right +0 -3
- data/test/data/edit.cmd +0 -12
- data/test/data/edit.right +0 -19
- data/test/data/emacs_basic.cmd +0 -10
- data/test/data/emacs_basic.right +0 -24
- data/test/data/enable.cmd +0 -20
- data/test/data/enable.right +0 -36
- data/test/data/except-bug1.cmd +0 -7
- data/test/data/except-bug1.right +0 -13
- data/test/data/file-with-space.cmd +0 -7
- data/test/data/file-with-space.right +0 -9
- data/test/data/finish.cmd +0 -16
- data/test/data/finish.right +0 -31
- data/test/data/frame.cmd +0 -29
- data/test/data/frame.right +0 -62
- data/test/data/help.cmd +0 -20
- data/test/data/help.right +0 -21
- data/test/data/history.right +0 -7
- data/test/data/info-file-break.cmd +0 -4
- data/test/data/info-file-break.right +0 -11
- data/test/data/info-thread.cmd +0 -13
- data/test/data/info-thread.right +0 -37
- data/test/data/info-var-bug2.cmd +0 -5
- data/test/data/info-var-bug2.right +0 -10
- data/test/data/info-var.cmd +0 -23
- data/test/data/info-var.right +0 -52
- data/test/data/info.cmd +0 -21
- data/test/data/info.right +0 -80
- data/test/data/linetrace-jruby.right +0 -23
- data/test/data/linetrace.cmd +0 -6
- data/test/data/linetrace.right +0 -32
- data/test/data/linetracep.cmd +0 -7
- data/test/data/linetracep.right +0 -25
- data/test/data/list.cmd +0 -19
- data/test/data/list.right +0 -127
- data/test/data/method.cmd +0 -10
- data/test/data/method.right +0 -21
- data/test/data/methodsig.cmd +0 -10
- data/test/data/methodsig.right +0 -20
- data/test/data/noquit.right +0 -1
- data/test/data/output.cmd +0 -6
- data/test/data/output.right +0 -31
- data/test/data/pm-bug.cmd +0 -7
- data/test/data/pm-bug.right +0 -12
- data/test/data/post-mortem-next.cmd +0 -8
- data/test/data/post-mortem-next.right +0 -14
- data/test/data/post-mortem-osx.right +0 -32
- data/test/data/post-mortem.cmd +0 -13
- data/test/data/post-mortem.right +0 -32
- data/test/data/quit.cmd +0 -6
- data/test/data/quit.right +0 -9
- data/test/data/raise-jruby.right +0 -26
- data/test/data/raise.cmd +0 -11
- data/test/data/raise.right +0 -26
- data/test/data/save.cmd +0 -34
- data/test/data/save.right +0 -61
- data/test/data/setshow.cmd +0 -46
- data/test/data/setshow.right +0 -80
- data/test/data/source.cmd +0 -5
- data/test/data/source.right +0 -15
- data/test/data/stepping.cmd +0 -21
- data/test/data/stepping.right +0 -50
- data/test/data/test-init-cygwin.right +0 -7
- data/test/data/test-init-osx.right +0 -4
- data/test/data/test-init.right +0 -5
- data/test/data/trace-jruby.right +0 -14
- data/test/data/trace.right +0 -23
- data/test/example/a/example.rb +0 -1
- data/test/example/at-exit.rb +0 -3
- data/test/example/b/example.rb +0 -1
- data/test/example/bp_loop_issue.rb +0 -3
- data/test/example/breakpoints-basename.rb +0 -2
- data/test/example/brkpt-class-bug.rb +0 -8
- data/test/example/classes.rb +0 -11
- data/test/example/dollar-0.rb +0 -6
- data/test/example/except-bug1.rb +0 -4
- data/test/example/file with space.rb +0 -1
- data/test/example/gcd.rb +0 -18
- data/test/example/info-var-bug.rb +0 -47
- data/test/example/info-var-bug2.rb +0 -2
- data/test/example/null.rb +0 -1
- data/test/example/output.rb +0 -2
- data/test/example/pm-bug.rb +0 -3
- data/test/example/pm.rb +0 -11
- data/test/example/raise.rb +0 -3
- data/test/gcd-dbg-nox.rb +0 -31
- data/test/gcd-dbg.rb +0 -30
- data/test/helper.rb +0 -167
- data/test/pm-base.rb +0 -22
- data/test/rdebug-save.1 +0 -7
- data/test/tdebug.rb +0 -252
- data/test/test-annotate.rb +0 -13
- data/test/test-at-exit.rb +0 -13
- data/test/test-break-bad.rb +0 -25
- data/test/test-breakpoints.rb +0 -24
- data/test/test-brkpt-class-bug.rb +0 -13
- data/test/test-catch.rb +0 -13
- data/test/test-condition.rb +0 -13
- data/test/test-ctrl.rb +0 -55
- data/test/test-display.rb +0 -14
- data/test/test-dollar-0.rb +0 -33
- data/test/test-edit.rb +0 -14
- data/test/test-emacs-basic.rb +0 -13
- data/test/test-enable.rb +0 -13
- data/test/test-except-bug1.rb +0 -16
- data/test/test-file-with-space.rb +0 -18
- data/test/test-finish.rb +0 -22
- data/test/test-frame.rb +0 -28
- data/test/test-help.rb +0 -60
- data/test/test-hist.rb +0 -64
- data/test/test-info-thread.rb +0 -24
- data/test/test-info-var.rb +0 -30
- data/test/test-info.rb +0 -27
- data/test/test-init.rb +0 -49
- data/test/test-list.rb +0 -14
- data/test/test-method.rb +0 -20
- data/test/test-output.rb +0 -13
- data/test/test-pm.rb +0 -37
- data/test/test-quit.rb +0 -13
- data/test/test-raise.rb +0 -13
- data/test/test-save.rb +0 -22
- data/test/test-setshow.rb +0 -13
- data/test/test-source.rb +0 -13
- data/test/test-stepping.rb +0 -14
- data/test/test-trace.rb +0 -40
- data/test/thread1.rb +0 -26
- data/test/trunc-call.rb +0 -31
data/test/data/save.cmd
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# This tests the functioning of some set/show debugger commands
|
|
2
|
-
set debuggertesting on
|
|
3
|
-
### *******************************
|
|
4
|
-
### *** save/source commands ***
|
|
5
|
-
### *******************************
|
|
6
|
-
########################################
|
|
7
|
-
### test args and baseneme...
|
|
8
|
-
########################################
|
|
9
|
-
set basename off
|
|
10
|
-
set autoeval off
|
|
11
|
-
# Should have nothing set
|
|
12
|
-
info break
|
|
13
|
-
info catch
|
|
14
|
-
# Should save nothing
|
|
15
|
-
save temp
|
|
16
|
-
eval File.open("temp").readlines
|
|
17
|
-
# Should read in nothing
|
|
18
|
-
source temp
|
|
19
|
-
set basename off
|
|
20
|
-
info break
|
|
21
|
-
# Now try saving something interesting
|
|
22
|
-
break 10
|
|
23
|
-
catch RuntimeError
|
|
24
|
-
save temp
|
|
25
|
-
eval File.open("temp").readlines
|
|
26
|
-
# FIXME: The below is broken
|
|
27
|
-
## Change parameters above
|
|
28
|
-
## catch RuntimeError off
|
|
29
|
-
## info catch
|
|
30
|
-
##set listsize 55
|
|
31
|
-
source temp
|
|
32
|
-
##info break
|
|
33
|
-
##info catch
|
|
34
|
-
##show listsize
|
data/test/data/save.right
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
gcd.rb:4
|
|
2
|
-
def gcd(a, b)
|
|
3
|
-
# # This tests the functioning of some set/show debugger commands
|
|
4
|
-
# set debuggertesting on
|
|
5
|
-
Currently testing the debugger is on.
|
|
6
|
-
# ### *******************************
|
|
7
|
-
# ### *** save/source commands ***
|
|
8
|
-
# ### *******************************
|
|
9
|
-
# ########################################
|
|
10
|
-
# ### test args and baseneme...
|
|
11
|
-
# ########################################
|
|
12
|
-
# set basename off
|
|
13
|
-
basename is off.
|
|
14
|
-
# set autoeval off
|
|
15
|
-
autoeval is off.
|
|
16
|
-
# # Should have nothing set
|
|
17
|
-
# info break
|
|
18
|
-
No breakpoints.
|
|
19
|
-
# info catch
|
|
20
|
-
No exceptions set to be caught.
|
|
21
|
-
# # Should save nothing
|
|
22
|
-
# save temp
|
|
23
|
-
Saved to 'temp'
|
|
24
|
-
# eval File.open("temp").readlines
|
|
25
|
-
["set autoeval off\n", "set basename off\n", "set debuggertesting on\n", "set autolist off\n", "set autoirb off\n"]
|
|
26
|
-
# # Should read in nothing
|
|
27
|
-
# source temp
|
|
28
|
-
autoeval is off.
|
|
29
|
-
basename is off.
|
|
30
|
-
Currently testing the debugger is on.
|
|
31
|
-
autolist is off.
|
|
32
|
-
autoirb is off.
|
|
33
|
-
# set basename off
|
|
34
|
-
basename is off.
|
|
35
|
-
# info break
|
|
36
|
-
No breakpoints.
|
|
37
|
-
# # Now try saving something interesting
|
|
38
|
-
# break 10
|
|
39
|
-
Breakpoint 1 file gcd.rb, line 10
|
|
40
|
-
# catch RuntimeError
|
|
41
|
-
Catch exception RuntimeError.
|
|
42
|
-
# save temp
|
|
43
|
-
Saved to 'temp'
|
|
44
|
-
# eval File.open("temp").readlines
|
|
45
|
-
["break gcd.rb:10\n", "catch RuntimeError\n", "set autoeval off\n", "set basename off\n", "set debuggertesting on\n", "set autolist off\n", "set autoirb off\n"]
|
|
46
|
-
# # FIXME: The below is broken
|
|
47
|
-
# ## Change parameters above
|
|
48
|
-
# ## catch RuntimeError off
|
|
49
|
-
# ## info catch
|
|
50
|
-
# ##set listsize 55
|
|
51
|
-
# source temp
|
|
52
|
-
Breakpoint 2 file gcd.rb, line 10
|
|
53
|
-
Catch exception RuntimeError.
|
|
54
|
-
autoeval is off.
|
|
55
|
-
basename is off.
|
|
56
|
-
Currently testing the debugger is on.
|
|
57
|
-
autolist is off.
|
|
58
|
-
autoirb is off.
|
|
59
|
-
# ##info break
|
|
60
|
-
# ##info catch
|
|
61
|
-
# ##show listsize
|
data/test/data/setshow.cmd
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# This tests the functioning of some set/show debugger commands
|
|
2
|
-
set debuggertesting on
|
|
3
|
-
### *******************************
|
|
4
|
-
### *** Set/show commands ***
|
|
5
|
-
### *******************************
|
|
6
|
-
########################################
|
|
7
|
-
### test args and baseneme...
|
|
8
|
-
########################################
|
|
9
|
-
set args this is a test
|
|
10
|
-
show args
|
|
11
|
-
show basename
|
|
12
|
-
set basename foo
|
|
13
|
-
show base
|
|
14
|
-
set basename off
|
|
15
|
-
show basename
|
|
16
|
-
set basename 0
|
|
17
|
-
show basename
|
|
18
|
-
set basename 1
|
|
19
|
-
show basename
|
|
20
|
-
########################################
|
|
21
|
-
### test listsize tests...
|
|
22
|
-
########################################
|
|
23
|
-
show listsize
|
|
24
|
-
show listsi
|
|
25
|
-
set listsize abc
|
|
26
|
-
set listsize -20
|
|
27
|
-
########################################
|
|
28
|
-
### test linetrace...
|
|
29
|
-
########################################
|
|
30
|
-
set linetrace on
|
|
31
|
-
show linetrace
|
|
32
|
-
set linetrace off
|
|
33
|
-
show linetrace
|
|
34
|
-
#### Test 'autoeval'...
|
|
35
|
-
set autoeval on
|
|
36
|
-
puts 'printed via autoeval'
|
|
37
|
-
set autoeval off
|
|
38
|
-
puts 'autoeval should not run this'
|
|
39
|
-
#### Test 'callstyle'...
|
|
40
|
-
set callstyle
|
|
41
|
-
set callstyle short
|
|
42
|
-
set callstyle last
|
|
43
|
-
set callstyle tracked
|
|
44
|
-
set callstyle foo
|
|
45
|
-
|
|
46
|
-
|
data/test/data/setshow.right
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
gcd.rb:4
|
|
2
|
-
def gcd(a, b)
|
|
3
|
-
# # This tests the functioning of some set/show debugger commands
|
|
4
|
-
# set debuggertesting on
|
|
5
|
-
Currently testing the debugger is on.
|
|
6
|
-
# ### *******************************
|
|
7
|
-
# ### *** Set/show commands ***
|
|
8
|
-
# ### *******************************
|
|
9
|
-
# ########################################
|
|
10
|
-
# ### test args and baseneme...
|
|
11
|
-
# ########################################
|
|
12
|
-
# set args this is a test
|
|
13
|
-
Argument list to give program being debugged when it is started is "this is a test".
|
|
14
|
-
# show args
|
|
15
|
-
Argument list to give program being debugged when it is started is "this is a test".
|
|
16
|
-
# show basename
|
|
17
|
-
basename is on.
|
|
18
|
-
# set basename foo
|
|
19
|
-
Expecting 'on', 1, 'off', or 0. Got: foo.
|
|
20
|
-
# show base
|
|
21
|
-
basename is on.
|
|
22
|
-
# set basename off
|
|
23
|
-
basename is off.
|
|
24
|
-
# show basename
|
|
25
|
-
basename is off.
|
|
26
|
-
# set basename 0
|
|
27
|
-
basename is off.
|
|
28
|
-
# show basename
|
|
29
|
-
basename is off.
|
|
30
|
-
# set basename 1
|
|
31
|
-
basename is on.
|
|
32
|
-
# show basename
|
|
33
|
-
basename is on.
|
|
34
|
-
# ########################################
|
|
35
|
-
# ### test listsize tests...
|
|
36
|
-
# ########################################
|
|
37
|
-
# show listsize
|
|
38
|
-
Number of source lines to list by default is 10.
|
|
39
|
-
# show listsi
|
|
40
|
-
Number of source lines to list by default is 10.
|
|
41
|
-
# set listsize abc
|
|
42
|
-
Set listsize argument 'abc' needs to be a number.
|
|
43
|
-
# set listsize -20
|
|
44
|
-
Set listsize argument '-20' needs to at least 1.
|
|
45
|
-
# ########################################
|
|
46
|
-
# ### test linetrace...
|
|
47
|
-
# ########################################
|
|
48
|
-
# set linetrace on
|
|
49
|
-
line tracing is on.
|
|
50
|
-
# show linetrace
|
|
51
|
-
line tracing is on.
|
|
52
|
-
# set linetrace off
|
|
53
|
-
line tracing is off.
|
|
54
|
-
# show linetrace
|
|
55
|
-
line tracing is off.
|
|
56
|
-
# #### Test 'autoeval'...
|
|
57
|
-
# set autoeval on
|
|
58
|
-
autoeval is on.
|
|
59
|
-
# puts 'printed via autoeval'
|
|
60
|
-
printed via autoeval
|
|
61
|
-
nil
|
|
62
|
-
# set autoeval off
|
|
63
|
-
autoeval is off.
|
|
64
|
-
# puts 'autoeval should not run this'
|
|
65
|
-
*** Unknown command: "puts 'autoeval should not run this'". Try "help".
|
|
66
|
-
# #### Test 'callstyle'...
|
|
67
|
-
# set callstyle
|
|
68
|
-
Invalid call style . Should be one of: 'short', 'last', or 'tracked'.
|
|
69
|
-
Frame call-display style is last.
|
|
70
|
-
# set callstyle short
|
|
71
|
-
Frame call-display style is short.
|
|
72
|
-
# set callstyle last
|
|
73
|
-
Frame call-display style is last.
|
|
74
|
-
# set callstyle tracked
|
|
75
|
-
Frame call-display style is tracked.
|
|
76
|
-
# set callstyle foo
|
|
77
|
-
Invalid call style foo. Should be one of: 'short', 'last', or 'tracked'.
|
|
78
|
-
Frame call-display style is tracked.
|
|
79
|
-
#
|
|
80
|
-
#
|
data/test/data/source.cmd
DELETED
data/test/data/source.right
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
gcd.rb:4
|
|
2
|
-
def gcd(a, b)
|
|
3
|
-
# # Test the source command
|
|
4
|
-
# # rdebug-save has breakpoint commands
|
|
5
|
-
# set debuggertesting on
|
|
6
|
-
Currently testing the debugger is on.
|
|
7
|
-
# source ./rdebug-save.1
|
|
8
|
-
Breakpoint 1 file gcd.rb, line 10
|
|
9
|
-
Breakpoint 2 file gcd.rb, line 12
|
|
10
|
-
autoeval is on.
|
|
11
|
-
basename is off.
|
|
12
|
-
Currently testing the debugger is on.
|
|
13
|
-
autolist is off.
|
|
14
|
-
autoirb is off.
|
|
15
|
-
# quit
|
data/test/data/stepping.cmd
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# ***************************************************
|
|
2
|
-
# This tests step, next, finish and continue
|
|
3
|
-
# ***************************************************
|
|
4
|
-
set debuggertesting on
|
|
5
|
-
set callstyle last
|
|
6
|
-
next
|
|
7
|
-
where
|
|
8
|
-
step a
|
|
9
|
-
set different on
|
|
10
|
-
step- ; step-
|
|
11
|
-
set diff off
|
|
12
|
-
where
|
|
13
|
-
n 2
|
|
14
|
-
step+
|
|
15
|
-
where
|
|
16
|
-
step 3
|
|
17
|
-
step+
|
|
18
|
-
where
|
|
19
|
-
next+
|
|
20
|
-
# finish
|
|
21
|
-
quit
|
data/test/data/stepping.right
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
gcd.rb:4
|
|
2
|
-
def gcd(a, b)
|
|
3
|
-
# # ***************************************************
|
|
4
|
-
# # This tests step, next, finish and continue
|
|
5
|
-
# # ***************************************************
|
|
6
|
-
# set debuggertesting on
|
|
7
|
-
Currently testing the debugger is on.
|
|
8
|
-
# set callstyle last
|
|
9
|
-
Frame call-display style is last.
|
|
10
|
-
# next
|
|
11
|
-
gcd.rb:18
|
|
12
|
-
gcd(3,5)
|
|
13
|
-
# where
|
|
14
|
-
--> #0 at line gcd.rb:18
|
|
15
|
-
# step a
|
|
16
|
-
Step argument 'a' needs to be a number.
|
|
17
|
-
# set different on
|
|
18
|
-
different-line stepping is on.
|
|
19
|
-
# step- ; step-
|
|
20
|
-
gcd.rb:6
|
|
21
|
-
if a > b
|
|
22
|
-
# set diff off
|
|
23
|
-
different-line stepping is off.
|
|
24
|
-
# where
|
|
25
|
-
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
|
|
26
|
-
#1 at line gcd.rb:18
|
|
27
|
-
# n 2
|
|
28
|
-
gcd.rb:10
|
|
29
|
-
return nil if a <= 0
|
|
30
|
-
# step+
|
|
31
|
-
gcd.rb:12
|
|
32
|
-
if a == 1 or b-a == 0
|
|
33
|
-
# where
|
|
34
|
-
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:12
|
|
35
|
-
#1 at line gcd.rb:18
|
|
36
|
-
# step 3
|
|
37
|
-
gcd.rb:6
|
|
38
|
-
if a > b
|
|
39
|
-
# step+
|
|
40
|
-
gcd.rb:10
|
|
41
|
-
return nil if a <= 0
|
|
42
|
-
# where
|
|
43
|
-
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:10
|
|
44
|
-
#1 Object.-(a#Fixnum, b#Fixnum) at line gcd.rb:15
|
|
45
|
-
#2 at line gcd.rb:18
|
|
46
|
-
# next+
|
|
47
|
-
gcd.rb:12
|
|
48
|
-
if a == 1 or b-a == 0
|
|
49
|
-
# # finish
|
|
50
|
-
# quit
|
data/test/data/test-init.right
DELETED
data/test/data/trace-jruby.right
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
Tracing(1):gcd.rb:4 def gcd(a, b)
|
|
2
|
-
Tracing(1):gcd.rb:18 gcd(3,5)
|
|
3
|
-
Tracing(1):gcd.rb:6 if a > b
|
|
4
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
|
5
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
|
6
|
-
Tracing(1):gcd.rb:15 return gcd(b-a, a)
|
|
7
|
-
Tracing(1):gcd.rb:6 if a > b
|
|
8
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
|
9
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
|
10
|
-
Tracing(1):gcd.rb:15 return gcd(b-a, a)
|
|
11
|
-
Tracing(1):gcd.rb:6 if a > b
|
|
12
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
|
13
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
|
14
|
-
Tracing(1):gcd.rb:13 return a
|
data/test/data/trace.right
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
Tracing(1):gcd.rb:4 def gcd(a, b)
|
|
2
|
-
Tracing(1):gcd.rb:18 gcd(3,5)
|
|
3
|
-
Tracing(1):gcd.rb:6 if a > b
|
|
4
|
-
Tracing(1):gcd.rb:6 if a > b
|
|
5
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
|
6
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
|
7
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
|
8
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
|
9
|
-
Tracing(1):gcd.rb:15 return gcd(b-a, a)
|
|
10
|
-
Tracing(1):gcd.rb:6 if a > b
|
|
11
|
-
Tracing(1):gcd.rb:6 if a > b
|
|
12
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
|
13
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
|
14
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
|
15
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
|
16
|
-
Tracing(1):gcd.rb:15 return gcd(b-a, a)
|
|
17
|
-
Tracing(1):gcd.rb:6 if a > b
|
|
18
|
-
Tracing(1):gcd.rb:6 if a > b
|
|
19
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
|
20
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
|
21
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
|
22
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
|
23
|
-
Tracing(1):gcd.rb:13 return a
|
data/test/example/a/example.rb
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
puts "a"
|
data/test/example/at-exit.rb
DELETED
data/test/example/b/example.rb
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
puts "b"
|
data/test/example/classes.rb
DELETED
data/test/example/dollar-0.rb
DELETED
data/test/example/except-bug1.rb
DELETED