ruby-debug 0.10.5.rc1 → 0.10.5.rc2
Sign up to get free protection for your applications and to get access to all the features.
- 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/help.cmd
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# $Id: setshow.cmd 298 2007-08-28 10:07:35Z rockyb $
|
2
|
-
# This tests the functioning of some set/show debugger commands
|
3
|
-
set debuggertesting on
|
4
|
-
set autoeval off
|
5
|
-
set width 80
|
6
|
-
### *******************************
|
7
|
-
### *** help commands ***
|
8
|
-
### *******************************
|
9
|
-
help foo
|
10
|
-
help set listsize
|
11
|
-
help show anno
|
12
|
-
help show foo
|
13
|
-
help info file
|
14
|
-
help info file all
|
15
|
-
help info file br
|
16
|
-
help info files
|
17
|
-
|
18
|
-
# FIXME - the below should work
|
19
|
-
# help
|
20
|
-
# help step
|
data/test/data/help.right
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
Currently testing the debugger is on.
|
2
|
-
autoeval is off.
|
3
|
-
width is 80.
|
4
|
-
Undefined command: "foo". Try "help".
|
5
|
-
Set number of source lines to list by default.
|
6
|
-
Show annotation level.
|
7
|
-
0 == normal; 2 == output annotated suitably for use by programs that control
|
8
|
-
ruby-debug.
|
9
|
-
Invalid 'show' subcommand 'foo'.
|
10
|
-
Info about a particular file read in.
|
11
|
-
|
12
|
-
After the file name is supplied, you can list file attributes that
|
13
|
-
you wish to see.
|
14
|
-
|
15
|
-
Attributes include: "all", "basic", "breakpoint", "lines", "mtime", "path"
|
16
|
-
and "sha1".
|
17
|
-
Info about a particular file read in.
|
18
|
-
All file information available - breakpoints, lines, mtime, path, and sha1.
|
19
|
-
Info about a particular file read in.
|
20
|
-
Show trace line numbers.
|
21
|
-
File names and timestamps of files read in.
|
data/test/data/history.right
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
gcd.rb:4
|
2
|
-
def gcd(a, b)
|
3
|
-
# set debuggertesting on
|
4
|
-
Currently testing the debugger is on.
|
5
|
-
# set callstyle last
|
6
|
-
Frame call-display style is last.
|
7
|
-
# info file ./example/gcd.rb break
|
8
|
-
File ./example/gcd.rb
|
9
|
-
breakpoint line numbers:
|
10
|
-
4 6 6 7 10 10 12 12 13 15 18
|
11
|
-
# quit
|
data/test/data/info-thread.cmd
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# ********************************************************
|
2
|
-
# This tests basic info thread commands
|
3
|
-
set debuggertesting on
|
4
|
-
set callstyle last
|
5
|
-
set autoeval off
|
6
|
-
info threads terse
|
7
|
-
info threads ver
|
8
|
-
info thread 1 t
|
9
|
-
info threads
|
10
|
-
info thread
|
11
|
-
help info thread
|
12
|
-
help info threads
|
13
|
-
q
|
data/test/data/info-thread.right
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
gcd.rb:4
|
2
|
-
def gcd(a, b)
|
3
|
-
# # ********************************************************
|
4
|
-
# # This tests basic info thread commands
|
5
|
-
# set debuggertesting on
|
6
|
-
Currently testing the debugger is on.
|
7
|
-
# set callstyle last
|
8
|
-
Frame call-display style is last.
|
9
|
-
# set autoeval off
|
10
|
-
autoeval is off.
|
11
|
-
# info threads terse
|
12
|
-
+ 1 #<Thread:0xb7ceb708 run> gcd.rb:4
|
13
|
-
# info threads ver
|
14
|
-
+ 1 #<Thread:0xb7ceb708 run>
|
15
|
-
#0 at line gcd.rb:4
|
16
|
-
# info thread 1 t
|
17
|
-
+ 1 #<Thread:0xb7ceb708 run> gcd.rb:4
|
18
|
-
# info threads
|
19
|
-
+ 1 #<Thread:0xb7ceb708 run> gcd.rb:4
|
20
|
-
# info thread
|
21
|
-
+ 1 #<Thread:0xb7ceb708 run> gcd.rb:4
|
22
|
-
# help info thread
|
23
|
-
List info about thread NUM.
|
24
|
-
|
25
|
-
If no thread number is given, we list info for all threads. 'terse' and 'verbose'
|
26
|
-
options are possible. If terse, just give summary thread name information. See
|
27
|
-
"help info threads" for more detail about this summary information.
|
28
|
-
|
29
|
-
If 'verbose' appended to the end of the command, then the entire
|
30
|
-
stack trace is given for each thread.
|
31
|
-
# help info threads
|
32
|
-
information of currently-known threads.
|
33
|
-
|
34
|
-
This information includes whether the thread is current (+), if it is
|
35
|
-
suspended ($), or ignored (!). The thread number and the top stack
|
36
|
-
item. If 'verbose' is given then the entire stack frame is shown.
|
37
|
-
# q
|
data/test/data/info-var-bug2.cmd
DELETED
data/test/data/info-var.cmd
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# ***************************************************
|
2
|
-
# Test handling of info variables when we have
|
3
|
-
# redefined inspect or to_s which give an error.
|
4
|
-
# ***************************************************
|
5
|
-
set debuggertesting on
|
6
|
-
# Go to where we have a bad "inspect" of a local variable
|
7
|
-
continue 36
|
8
|
-
info variables
|
9
|
-
# Go to where we have a bad "inspect" and "to_s" of a local variable
|
10
|
-
continue 40
|
11
|
-
info variables
|
12
|
-
break 31
|
13
|
-
# The first time through, we can do inspect.
|
14
|
-
continue
|
15
|
-
info locals
|
16
|
-
# Now go to where we have a bad "inspect" of an class variable
|
17
|
-
continue
|
18
|
-
info locals
|
19
|
-
info variables
|
20
|
-
# Now go to where we have a bad "inspect" and "to_s" of an class variable
|
21
|
-
continue
|
22
|
-
info locals
|
23
|
-
quit
|
data/test/data/info-var.right
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
info-var-bug.rb:1
|
2
|
-
class Lousy_inspect
|
3
|
-
# # ***************************************************
|
4
|
-
# # Test handling of info variables when we have
|
5
|
-
# # redefined inspect or to_s which give an error.
|
6
|
-
# # ***************************************************
|
7
|
-
# set debuggertesting on
|
8
|
-
Currently testing the debugger is on.
|
9
|
-
# # Go to where we have a bad "inspect" of a local variable
|
10
|
-
# continue 36
|
11
|
-
info-var-bug.rb:36
|
12
|
-
return x
|
13
|
-
# info variables
|
14
|
-
self = main
|
15
|
-
x = #<Lousy_inspect:0xb7825034>
|
16
|
-
# # Go to where we have a bad "inspect" and "to_s" of a local variable
|
17
|
-
# continue 40
|
18
|
-
info-var-bug.rb:40
|
19
|
-
return x
|
20
|
-
# info variables
|
21
|
-
self = main
|
22
|
-
x = *Error in evaluation*
|
23
|
-
# break 31
|
24
|
-
Breakpoint 1 file info-var-bug.rb, line 31
|
25
|
-
# # The first time through, we can do inspect.
|
26
|
-
# continue
|
27
|
-
Breakpoint 1 at info-var-bug.rb:31
|
28
|
-
info-var-bug.rb:31
|
29
|
-
@b = 5
|
30
|
-
# info locals
|
31
|
-
a = 10
|
32
|
-
# # Now go to where we have a bad "inspect" of an class variable
|
33
|
-
# continue
|
34
|
-
Breakpoint 1 at info-var-bug.rb:31
|
35
|
-
info-var-bug.rb:31
|
36
|
-
@b = 5
|
37
|
-
# info locals
|
38
|
-
a = #<Lousy_inspect:0xb784945c>
|
39
|
-
# info variables
|
40
|
-
a = #<Lousy_inspect:0xb780ddd0>
|
41
|
-
self = #<UnsuspectingClass:0xb78075e8>
|
42
|
-
@a = #<Lousy_inspect:0xb780ddd0>
|
43
|
-
@@Const = "A constant"
|
44
|
-
@@var = "a class variable"
|
45
|
-
# # Now go to where we have a bad "inspect" and "to_s" of an class variable
|
46
|
-
# continue
|
47
|
-
Breakpoint 1 at info-var-bug.rb:31
|
48
|
-
info-var-bug.rb:31
|
49
|
-
@b = 5
|
50
|
-
# info locals
|
51
|
-
*Error in evaluation*
|
52
|
-
# quit
|
data/test/data/info.cmd
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# ***************************************************
|
2
|
-
# This tests info command handling
|
3
|
-
# ***************************************************
|
4
|
-
set debuggertesting on
|
5
|
-
set callstyle last
|
6
|
-
help info
|
7
|
-
info args
|
8
|
-
info line
|
9
|
-
info locals
|
10
|
-
info stack
|
11
|
-
info display
|
12
|
-
help info break
|
13
|
-
help info display
|
14
|
-
break 10
|
15
|
-
break 12
|
16
|
-
info break 10
|
17
|
-
info break 1
|
18
|
-
info break 1 2
|
19
|
-
info break
|
20
|
-
i
|
21
|
-
quit
|
data/test/data/info.right
DELETED
@@ -1,80 +0,0 @@
|
|
1
|
-
gcd.rb:4
|
2
|
-
def gcd(a, b)
|
3
|
-
# # ***************************************************
|
4
|
-
# # This tests info command handling
|
5
|
-
# # ***************************************************
|
6
|
-
# set debuggertesting on
|
7
|
-
Currently testing the debugger is on.
|
8
|
-
# set callstyle last
|
9
|
-
Frame call-display style is last.
|
10
|
-
# help info
|
11
|
-
Generic command for showing things about the program being debugged.
|
12
|
-
--
|
13
|
-
List of info subcommands:
|
14
|
-
--
|
15
|
-
info args -- Argument variables of current stack frame
|
16
|
-
info breakpoints -- Status of user-settable breakpoints
|
17
|
-
info catch -- Exceptions that can be caught in the current stack frame
|
18
|
-
info display -- Expressions to display when program stops
|
19
|
-
info file -- Info about a particular file read in
|
20
|
-
info files -- File names and timestamps of files read in
|
21
|
-
info global_variables -- Global variables
|
22
|
-
info instance_variables -- Instance variables of the current stack frame
|
23
|
-
info line -- Line number and file name of current position in source file
|
24
|
-
info locals -- Local variables of the current stack frame
|
25
|
-
info program -- Execution status of the program
|
26
|
-
info stack -- Backtrace of the stack
|
27
|
-
info thread -- List info about thread NUM
|
28
|
-
info threads -- information of currently-known threads
|
29
|
-
info variables -- Local and instance variables of the current stack frame
|
30
|
-
# info args
|
31
|
-
# info line
|
32
|
-
Line 4 of "gcd.rb"
|
33
|
-
# info locals
|
34
|
-
# info stack
|
35
|
-
--> #0 at line gcd.rb:4
|
36
|
-
# info display
|
37
|
-
There are no auto-display expressions now.
|
38
|
-
# help info break
|
39
|
-
Status of user-settable breakpoints.
|
40
|
-
Without argument, list info about all breakpoints. With an
|
41
|
-
integer argument, list info on that breakpoint.
|
42
|
-
# help info display
|
43
|
-
Expressions to display when program stops.
|
44
|
-
# break 10
|
45
|
-
Breakpoint 1 file gcd.rb, line 10
|
46
|
-
# break 12
|
47
|
-
Breakpoint 2 file gcd.rb, line 12
|
48
|
-
# info break 10
|
49
|
-
*** No breakpoints found among list given.
|
50
|
-
# info break 1
|
51
|
-
Num Enb What
|
52
|
-
1 y at gcd.rb:10
|
53
|
-
# info break 1 2
|
54
|
-
Num Enb What
|
55
|
-
1 y at gcd.rb:10
|
56
|
-
2 y at gcd.rb:12
|
57
|
-
# info break
|
58
|
-
Num Enb What
|
59
|
-
1 y at gcd.rb:10
|
60
|
-
2 y at gcd.rb:12
|
61
|
-
# i
|
62
|
-
*** "info" must be followed by the name of an info command:
|
63
|
-
List of info subcommands:
|
64
|
-
|
65
|
-
info args -- Argument variables of current stack frame
|
66
|
-
info breakpoints -- Status of user-settable breakpoints
|
67
|
-
info catch -- Exceptions that can be caught in the current stack frame
|
68
|
-
info display -- Expressions to display when program stops
|
69
|
-
info file -- Info about a particular file read in
|
70
|
-
info files -- File names and timestamps of files read in
|
71
|
-
info global_variables -- Global variables
|
72
|
-
info instance_variables -- Instance variables of the current stack frame
|
73
|
-
info line -- Line number and file name of current position in source file
|
74
|
-
info locals -- Local variables of the current stack frame
|
75
|
-
info program -- Execution status of the program
|
76
|
-
info stack -- Backtrace of the stack
|
77
|
-
info thread -- List info about thread NUM
|
78
|
-
info threads -- information of currently-known threads
|
79
|
-
info variables -- Local and instance variables of the current stack frame
|
80
|
-
# quit
|
@@ -1,23 +0,0 @@
|
|
1
|
-
gcd.rb:4
|
2
|
-
def gcd(a, b)
|
3
|
-
# # ********************************************************
|
4
|
-
# # This tests the 'linetrace' command.
|
5
|
-
# # ********************************************************
|
6
|
-
# set basename on
|
7
|
-
basename is on.
|
8
|
-
# set linetrace on
|
9
|
-
line tracing is on.
|
10
|
-
# continue
|
11
|
-
Tracing(1):gcd.rb:18 gcd(3,5)
|
12
|
-
Tracing(1):gcd.rb:6 if a > b
|
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:15 return gcd(b-a, a)
|
16
|
-
Tracing(1):gcd.rb:6 if a > b
|
17
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
18
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
19
|
-
Tracing(1):gcd.rb:15 return gcd(b-a, a)
|
20
|
-
Tracing(1):gcd.rb:6 if a > b
|
21
|
-
Tracing(1):gcd.rb:10 return nil if 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/data/linetrace.cmd
DELETED
data/test/data/linetrace.right
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
gcd.rb:4
|
2
|
-
def gcd(a, b)
|
3
|
-
# # ********************************************************
|
4
|
-
# # This tests the 'linetrace' command.
|
5
|
-
# # ********************************************************
|
6
|
-
# set basename on
|
7
|
-
basename is on.
|
8
|
-
# set linetrace on
|
9
|
-
line tracing is on.
|
10
|
-
# continue
|
11
|
-
Tracing(1):gcd.rb:18 gcd(3,5)
|
12
|
-
Tracing(1):gcd.rb:6 if a > b
|
13
|
-
Tracing(1):gcd.rb:6 if a > b
|
14
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
15
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
16
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
17
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
18
|
-
Tracing(1):gcd.rb:15 return gcd(b-a, a)
|
19
|
-
Tracing(1):gcd.rb:6 if a > b
|
20
|
-
Tracing(1):gcd.rb:6 if a > b
|
21
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
22
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
23
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
24
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
25
|
-
Tracing(1):gcd.rb:15 return gcd(b-a, a)
|
26
|
-
Tracing(1):gcd.rb:6 if a > b
|
27
|
-
Tracing(1):gcd.rb:6 if a > b
|
28
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
29
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
30
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
31
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
32
|
-
Tracing(1):gcd.rb:13 return a
|
data/test/data/linetracep.cmd
DELETED
data/test/data/linetracep.right
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
gcd.rb:4
|
2
|
-
def gcd(a, b)
|
3
|
-
# # ********************************************************
|
4
|
-
# # This tests the 'linetrace+' command.
|
5
|
-
# # ********************************************************
|
6
|
-
# set basename on
|
7
|
-
basename is on.
|
8
|
-
# set linetrace+ on
|
9
|
-
line tracing style is different consecutive lines.
|
10
|
-
# set linetrace on
|
11
|
-
line tracing is on.
|
12
|
-
# continue
|
13
|
-
Tracing(1):gcd.rb:18 gcd(3,5)
|
14
|
-
Tracing(1):gcd.rb:6 if a > b
|
15
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
16
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
17
|
-
Tracing(1):gcd.rb:15 return gcd(b-a, a)
|
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:12 if a == 1 or b-a == 0
|
21
|
-
Tracing(1):gcd.rb:15 return gcd(b-a, a)
|
22
|
-
Tracing(1):gcd.rb:6 if a > b
|
23
|
-
Tracing(1):gcd.rb:10 return nil if a <= 0
|
24
|
-
Tracing(1):gcd.rb:12 if a == 1 or b-a == 0
|
25
|
-
Tracing(1):gcd.rb:13 return a
|
data/test/data/list.cmd
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# ********************************************************
|
2
|
-
# This tests the 'list' command.
|
3
|
-
# ********************************************************
|
4
|
-
set basename on
|
5
|
-
list
|
6
|
-
list
|
7
|
-
list
|
8
|
-
list
|
9
|
-
list -
|
10
|
-
list -
|
11
|
-
list -
|
12
|
-
list -
|
13
|
-
list 1
|
14
|
-
list 20
|
15
|
-
set listsize 5
|
16
|
-
list 5
|
17
|
-
list =
|
18
|
-
list 3-4
|
19
|
-
|