debugger 1.2.4 → 1.3.0
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/.gitignore +14 -0
- data/.travis.yml +0 -1
- data/CHANGELOG.md +9 -0
- data/Gemfile +3 -0
- data/README.md +2 -0
- data/Rakefile +3 -55
- data/debugger.gemspec +2 -0
- data/lib/debugger/version.rb +1 -1
- data/lib/ruby-debug-base.rb +3 -1
- data/lib/ruby-debug/commands/irb.rb +1 -1
- data/lib/ruby-debug/commands/jump.rb +1 -1
- data/lib/ruby-debug/commands/method.rb +1 -1
- data/lib/ruby-debug/commands/show.rb +1 -1
- data/lib/ruby-debug/commands/trace.rb +2 -2
- data/lib/ruby-debug/commands/variables.rb +3 -3
- data/test/breakpoints_test.rb +365 -0
- data/test/conditions_test.rb +76 -0
- data/test/continue_test.rb +28 -0
- data/test/display_test.rb +141 -0
- data/test/edit_test.rb +55 -0
- data/test/eval_test.rb +92 -0
- data/test/examples/breakpoint1.rb +15 -0
- data/test/examples/breakpoint2.rb +7 -0
- data/test/examples/conditions.rb +4 -0
- data/test/examples/continue.rb +4 -0
- data/test/examples/display.rb +5 -0
- data/test/examples/edit.rb +3 -0
- data/test/examples/edit2.rb +3 -0
- data/test/examples/eval.rb +4 -0
- data/test/examples/finish.rb +20 -0
- data/test/examples/frame.rb +31 -0
- data/test/examples/help.rb +2 -0
- data/test/examples/info.rb +48 -0
- data/test/examples/info2.rb +3 -0
- data/test/examples/irb.rb +6 -0
- data/test/examples/jump.rb +14 -0
- data/test/examples/kill.rb +2 -0
- data/test/examples/list.rb +12 -0
- data/test/examples/method.rb +15 -0
- data/test/examples/post_mortem.rb +19 -0
- data/test/examples/quit.rb +2 -0
- data/test/examples/reload.rb +6 -0
- data/test/examples/restart.rb +6 -0
- data/test/examples/save.rb +3 -0
- data/test/examples/set.rb +3 -0
- data/test/examples/set_annotate.rb +12 -0
- data/test/examples/settings.rb +1 -0
- data/test/examples/show.rb +2 -0
- data/test/examples/source.rb +3 -0
- data/test/examples/stepping.rb +21 -0
- data/test/examples/thread.rb +32 -0
- data/test/examples/tmate.rb +10 -0
- data/test/examples/trace.rb +7 -0
- data/test/examples/trace_threads.rb +20 -0
- data/test/examples/variables.rb +26 -0
- data/test/finish_test.rb +48 -0
- data/test/frame_test.rb +140 -0
- data/test/help_test.rb +50 -0
- data/test/info_test.rb +325 -0
- data/test/irb_test.rb +81 -0
- data/test/jump_test.rb +70 -0
- data/test/kill_test.rb +47 -0
- data/test/list_test.rb +145 -0
- data/test/method_test.rb +70 -0
- data/test/post_mortem_test.rb +25 -0
- data/test/quit_test.rb +55 -0
- data/test/reload_test.rb +43 -0
- data/test/restart_test.rb +143 -0
- data/test/save_test.rb +92 -0
- data/test/set_test.rb +163 -0
- data/test/show_test.rb +292 -0
- data/test/source_test.rb +44 -0
- data/test/stepping_test.rb +118 -0
- data/test/support/breakpoint.rb +12 -0
- data/test/support/context.rb +14 -0
- data/test/support/matchers.rb +67 -0
- data/test/support/mocha_extensions.rb +71 -0
- data/test/support/processor.rb +7 -0
- data/test/support/test_dsl.rb +205 -0
- data/test/support/test_interface.rb +66 -0
- data/test/test_helper.rb +8 -0
- data/test/thread_test.rb +122 -0
- data/test/tmate_test.rb +43 -0
- data/test/trace_test.rb +154 -0
- data/test/variables_test.rb +114 -0
- metadata +107 -158
- data/test/base/base.rb +0 -71
- data/test/base/binding.rb +0 -24
- data/test/base/catchpoint.rb +0 -22
- data/test/base/load.rb +0 -36
- data/test/bp_loop_issue.rb +0 -3
- data/test/classes.rb +0 -11
- data/test/config.yaml +0 -8
- data/test/data/annotate.cmd +0 -29
- data/test/data/annotate.right +0 -139
- data/test/data/break_bad.cmd +0 -18
- data/test/data/break_bad.right +0 -28
- data/test/data/break_loop_bug.cmd +0 -5
- data/test/data/break_loop_bug.right +0 -15
- data/test/data/breakpoints.cmd +0 -38
- data/test/data/breakpoints.right +0 -98
- data/test/data/catch.cmd +0 -20
- data/test/data/catch.right +0 -49
- data/test/data/catch2.cmd +0 -19
- data/test/data/catch2.right +0 -65
- data/test/data/catch3.cmd +0 -11
- data/test/data/catch3.right +0 -37
- data/test/data/condition.cmd +0 -28
- data/test/data/condition.right +0 -65
- 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 -2
- data/test/data/dollar-0a.right +0 -2
- data/test/data/dollar-0b.right +0 -2
- data/test/data/edit.cmd +0 -12
- data/test/data/edit.right +0 -19
- data/test/data/emacs_basic.cmd +0 -43
- data/test/data/emacs_basic.right +0 -106
- data/test/data/enable.cmd +0 -20
- data/test/data/enable.right +0 -36
- data/test/data/finish.cmd +0 -16
- data/test/data/finish.right +0 -31
- data/test/data/frame.cmd +0 -26
- data/test/data/frame.right +0 -55
- 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-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 -65
- data/test/data/jump.cmd +0 -16
- data/test/data/jump.right +0 -56
- data/test/data/jump2.cmd +0 -16
- data/test/data/jump2.right +0 -44
- data/test/data/linetrace.cmd +0 -6
- data/test/data/linetrace.right +0 -23
- 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/next.cmd +0 -22
- data/test/data/next.right +0 -61
- 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 -31
- 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 -0
- data/test/data/raise.cmd +0 -11
- data/test/data/raise.right +0 -23
- data/test/data/save.cmd +0 -34
- data/test/data/save.right +0 -59
- data/test/data/scope-var.cmd +0 -42
- data/test/data/scope-var.right +0 -587
- data/test/data/setshow.cmd +0 -56
- data/test/data/setshow.right +0 -98
- 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.right +0 -14
- data/test/dollar-0.rb +0 -5
- data/test/gcd-dbg-nox.rb +0 -30
- data/test/gcd-dbg.rb +0 -29
- data/test/gcd.rb +0 -18
- data/test/helper.rb +0 -142
- data/test/info-var-bug.rb +0 -47
- data/test/info-var-bug2.rb +0 -2
- data/test/jump.rb +0 -14
- data/test/jump2.rb +0 -27
- data/test/lib/commands/catchpoint_test.rb +0 -28
- data/test/lib/commands/unit/regexp.rb +0 -38
- data/test/next.rb +0 -18
- data/test/null.rb +0 -1
- data/test/output.rb +0 -2
- data/test/pm-base.rb +0 -17
- data/test/pm-bug.rb +0 -3
- data/test/pm-catch.rb +0 -12
- data/test/pm-catch2.rb +0 -27
- data/test/pm-catch3.rb +0 -47
- data/test/pm.rb +0 -11
- data/test/raise.rb +0 -3
- data/test/rdebug-save.1 +0 -7
- data/test/runall +0 -12
- data/test/scope-var.rb +0 -29
- data/test/tdebug.rb +0 -246
- data/test/test-annotate.rb +0 -24
- data/test/test-break-bad.rb +0 -36
- data/test/test-breakpoints.rb +0 -24
- data/test/test-catch.rb +0 -24
- data/test/test-catch2.rb +0 -24
- data/test/test-catch3.rb +0 -24
- data/test/test-condition.rb +0 -24
- data/test/test-ctrl.rb +0 -51
- data/test/test-display.rb +0 -25
- data/test/test-dollar-0.rb +0 -39
- data/test/test-edit.rb +0 -25
- data/test/test-emacs-basic.rb +0 -25
- data/test/test-enable.rb +0 -24
- data/test/test-finish.rb +0 -33
- data/test/test-frame.rb +0 -33
- data/test/test-help.rb +0 -54
- data/test/test-hist.rb +0 -65
- data/test/test-info-thread.rb +0 -31
- data/test/test-info-var.rb +0 -46
- data/test/test-info.rb +0 -25
- data/test/test-init.rb +0 -43
- data/test/test-jump.rb +0 -34
- data/test/test-list.rb +0 -24
- data/test/test-method.rb +0 -33
- data/test/test-next.rb +0 -24
- data/test/test-output.rb +0 -25
- data/test/test-quit.rb +0 -29
- data/test/test-raise.rb +0 -24
- data/test/test-remote.rb +0 -14
- data/test/test-save.rb +0 -30
- data/test/test-scope-var.rb +0 -24
- data/test/test-setshow.rb +0 -24
- data/test/test-source.rb +0 -24
- data/test/test-stepping.rb +0 -25
- data/test/test-trace.rb +0 -46
- data/test/thread1.rb +0 -25
- data/test/trunc-call.rb +0 -30
data/test/data/emacs_basic.cmd
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
# ********************************************************
|
2
|
-
# This tests step, next, finish, continue, disable and
|
3
|
-
# enable.
|
4
|
-
# FIXME: break out enable/disable
|
5
|
-
# ********************************************************
|
6
|
-
set debuggertesting on
|
7
|
-
set callstyle last
|
8
|
-
set autoeval off
|
9
|
-
break 6
|
10
|
-
break 10
|
11
|
-
continue
|
12
|
-
where
|
13
|
-
break Foo.bar
|
14
|
-
break Object.gcd
|
15
|
-
info break
|
16
|
-
continue
|
17
|
-
where
|
18
|
-
info program
|
19
|
-
c 10
|
20
|
-
info break
|
21
|
-
break foo
|
22
|
-
info break
|
23
|
-
disable 1
|
24
|
-
info break
|
25
|
-
enable breakpoint 1
|
26
|
-
enable br 10
|
27
|
-
delete 1
|
28
|
-
# We should see breakpoint 2 but not 1
|
29
|
-
info break
|
30
|
-
# We should still be able to access 2
|
31
|
-
disable 2
|
32
|
-
enable
|
33
|
-
enable foo
|
34
|
-
disable bar
|
35
|
-
disable
|
36
|
-
# We should be able to delete 2
|
37
|
-
delete 2 3
|
38
|
-
info break
|
39
|
-
# Should get a message about having no breakpoints.
|
40
|
-
disable 1
|
41
|
-
enable 1
|
42
|
-
# finish
|
43
|
-
quit
|
data/test/data/emacs_basic.right
DELETED
@@ -1,106 +0,0 @@
|
|
1
|
-
gcd.rb:4
|
2
|
-
def gcd(a, b)
|
3
|
-
# # ********************************************************
|
4
|
-
# # This tests step, next, finish, continue, disable and
|
5
|
-
# # enable.
|
6
|
-
# # FIXME: break out enable/disable
|
7
|
-
# # ********************************************************
|
8
|
-
# set debuggertesting on
|
9
|
-
Currently testing the debugger is on.
|
10
|
-
# set callstyle last
|
11
|
-
Frame call-display style is last.
|
12
|
-
# set autoeval off
|
13
|
-
autoeval is off.
|
14
|
-
# break 6
|
15
|
-
Breakpoint 1 file ./gcd.rb, line 6
|
16
|
-
# break 10
|
17
|
-
Breakpoint 2 file ./gcd.rb, line 10
|
18
|
-
# continue
|
19
|
-
Breakpoint 1 at gcd.rb:6
|
20
|
-
gcd.rb:6
|
21
|
-
if a > b
|
22
|
-
# where
|
23
|
-
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
|
24
|
-
#1 at line gcd.rb:18
|
25
|
-
# break Foo.bar
|
26
|
-
*** Unknown class Foo.
|
27
|
-
# break Object.gcd
|
28
|
-
Breakpoint 3 at Object::gcd
|
29
|
-
# info break
|
30
|
-
Num Enb What
|
31
|
-
1 y at ./gcd.rb:6
|
32
|
-
breakpoint already hit 1 time
|
33
|
-
2 y at ./gcd.rb:10
|
34
|
-
3 y at Object:gcd
|
35
|
-
# continue
|
36
|
-
Breakpoint 2 at gcd.rb:10
|
37
|
-
gcd.rb:10
|
38
|
-
return nil if a <= 0
|
39
|
-
# where
|
40
|
-
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:10
|
41
|
-
#1 at line gcd.rb:18
|
42
|
-
# info program
|
43
|
-
Program stopped. It stopped at a breakpoint.
|
44
|
-
# c 10
|
45
|
-
Breakpoint 3 at Object:gcd
|
46
|
-
gcd.rb:4
|
47
|
-
def gcd(a, b)
|
48
|
-
# info break
|
49
|
-
Num Enb What
|
50
|
-
1 y at ./gcd.rb:6
|
51
|
-
breakpoint already hit 1 time
|
52
|
-
2 y at ./gcd.rb:10
|
53
|
-
breakpoint already hit 1 time
|
54
|
-
3 y at Object:gcd
|
55
|
-
breakpoint already hit 1 time
|
56
|
-
# break foo
|
57
|
-
*** Invalid breakpoint location: foo.
|
58
|
-
# info break
|
59
|
-
Num Enb What
|
60
|
-
1 y at ./gcd.rb:6
|
61
|
-
breakpoint already hit 1 time
|
62
|
-
2 y at ./gcd.rb:10
|
63
|
-
breakpoint already hit 1 time
|
64
|
-
3 y at Object:gcd
|
65
|
-
breakpoint already hit 1 time
|
66
|
-
# disable 1
|
67
|
-
# info break
|
68
|
-
Num Enb What
|
69
|
-
1 n at ./gcd.rb:6
|
70
|
-
breakpoint already hit 1 time
|
71
|
-
2 y at ./gcd.rb:10
|
72
|
-
breakpoint already hit 1 time
|
73
|
-
3 y at Object:gcd
|
74
|
-
breakpoint already hit 1 time
|
75
|
-
# enable breakpoint 1
|
76
|
-
# enable br 10
|
77
|
-
Enable breakpoints argument '10' needs to at most 3.
|
78
|
-
# delete 1
|
79
|
-
# # We should see breakpoint 2 but not 1
|
80
|
-
# info break
|
81
|
-
Num Enb What
|
82
|
-
2 y at ./gcd.rb:10
|
83
|
-
breakpoint already hit 1 time
|
84
|
-
3 y at Object:gcd
|
85
|
-
breakpoint already hit 1 time
|
86
|
-
# # We should still be able to access 2
|
87
|
-
# disable 2
|
88
|
-
# enable
|
89
|
-
*** "enable" must be followed "display", "breakpoints" or breakpoint numbers.
|
90
|
-
# enable foo
|
91
|
-
Enable breakpoints argument 'foo' needs to be a number.
|
92
|
-
# disable bar
|
93
|
-
Disable breakpoints argument 'bar' needs to be a number.
|
94
|
-
# disable
|
95
|
-
*** "disable" must be followed "display", "breakpoints" or breakpoint numbers.
|
96
|
-
# # We should be able to delete 2
|
97
|
-
# delete 2 3
|
98
|
-
# info break
|
99
|
-
No breakpoints.
|
100
|
-
# # Should get a message about having no breakpoints.
|
101
|
-
# disable 1
|
102
|
-
*** No breakpoints have been set.
|
103
|
-
# enable 1
|
104
|
-
*** No breakpoints have been set.
|
105
|
-
# # finish
|
106
|
-
# quit
|
data/test/data/enable.cmd
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# ********************************************************
|
2
|
-
# This tests the enable command.
|
3
|
-
# ********************************************************
|
4
|
-
set debuggertesting on
|
5
|
-
set callstyle last
|
6
|
-
set autoeval off
|
7
|
-
break Object.gcd
|
8
|
-
# Should have a breakpoint 1
|
9
|
-
enable br 1
|
10
|
-
# Get help on enable
|
11
|
-
help enable
|
12
|
-
# Get help on just enable break
|
13
|
-
help enable break
|
14
|
-
# Plain enable should work
|
15
|
-
enable
|
16
|
-
# An invalid enable command
|
17
|
-
enable foo
|
18
|
-
quit
|
19
|
-
|
20
|
-
|
data/test/data/enable.right
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
gcd.rb:4
|
2
|
-
def gcd(a, b)
|
3
|
-
# # ********************************************************
|
4
|
-
# # This tests the enable command.
|
5
|
-
# # ********************************************************
|
6
|
-
# set debuggertesting on
|
7
|
-
Currently testing the debugger is on.
|
8
|
-
# set callstyle last
|
9
|
-
Frame call-display style is last.
|
10
|
-
# set autoeval off
|
11
|
-
autoeval is off.
|
12
|
-
# break Object.gcd
|
13
|
-
Breakpoint 1 at Object::gcd
|
14
|
-
# # Should have a breakpoint 1
|
15
|
-
# enable br 1
|
16
|
-
# # Get help on enable
|
17
|
-
# help enable
|
18
|
-
Enable some things.
|
19
|
-
This is used to cancel the effect of the "disable" command.
|
20
|
-
--
|
21
|
-
List of enable subcommands:
|
22
|
-
--
|
23
|
-
enable breakpoints -- Enable specified breakpoints
|
24
|
-
enable display -- Enable some expressions to be displayed when program stops
|
25
|
-
# # Get help on just enable break
|
26
|
-
# help enable break
|
27
|
-
Enable specified breakpoints.
|
28
|
-
Give breakpoint numbers (separated by spaces) as arguments.
|
29
|
-
This is used to cancel the effect of the "disable" command.
|
30
|
-
# # Plain enable should work
|
31
|
-
# enable
|
32
|
-
*** "enable" must be followed "display", "breakpoints" or breakpoint numbers.
|
33
|
-
# # An invalid enable command
|
34
|
-
# enable foo
|
35
|
-
Enable breakpoints argument 'foo' needs to be a number.
|
36
|
-
# quit
|
data/test/data/finish.cmd
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# ********************************************************
|
2
|
-
# This tests finish.
|
3
|
-
# ********************************************************
|
4
|
-
set debuggertesting on
|
5
|
-
set callstyle last
|
6
|
-
set autoeval off
|
7
|
-
break 6
|
8
|
-
continue
|
9
|
-
continue
|
10
|
-
continue
|
11
|
-
where
|
12
|
-
finish 0
|
13
|
-
where
|
14
|
-
p a
|
15
|
-
p b
|
16
|
-
finish
|
data/test/data/finish.right
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
gcd.rb:4
|
2
|
-
def gcd(a, b)
|
3
|
-
# # ********************************************************
|
4
|
-
# # This tests finish.
|
5
|
-
# # ********************************************************
|
6
|
-
# set debuggertesting on
|
7
|
-
Currently testing the debugger is on.
|
8
|
-
# set callstyle last
|
9
|
-
Frame call-display style is last.
|
10
|
-
# set autoeval off
|
11
|
-
autoeval is off.
|
12
|
-
# break 6
|
13
|
-
Breakpoint 1 file ./gcd.rb, line 6
|
14
|
-
# continue
|
15
|
-
Breakpoint 1 at gcd.rb:6
|
16
|
-
gcd.rb:6
|
17
|
-
if a > b
|
18
|
-
# continue
|
19
|
-
Breakpoint 1 at gcd.rb:6
|
20
|
-
gcd.rb:6
|
21
|
-
if a > b
|
22
|
-
# continue
|
23
|
-
Breakpoint 1 at gcd.rb:6
|
24
|
-
gcd.rb:6
|
25
|
-
if a > b
|
26
|
-
# where
|
27
|
-
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
|
28
|
-
#1 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:15
|
29
|
-
#2 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:15
|
30
|
-
#3 at line gcd.rb:18
|
31
|
-
# finish 0
|
data/test/data/frame.cmd
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# ***************************************************
|
2
|
-
# This tests step, next, finish and continue
|
3
|
-
# ***************************************************
|
4
|
-
set debuggertesting on
|
5
|
-
set callstyle last
|
6
|
-
# Invalid line number in continue command
|
7
|
-
continue 3
|
8
|
-
# This time, for sure!
|
9
|
-
continue 6
|
10
|
-
where
|
11
|
-
up
|
12
|
-
where
|
13
|
-
down
|
14
|
-
where
|
15
|
-
frame
|
16
|
-
where
|
17
|
-
frame -1
|
18
|
-
where
|
19
|
-
up 2
|
20
|
-
where
|
21
|
-
down 2
|
22
|
-
where
|
23
|
-
frame 0 thread 3
|
24
|
-
frame 0 thread 1
|
25
|
-
# finish
|
26
|
-
quit
|
data/test/data/frame.right
DELETED
@@ -1,55 +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
|
-
# # Invalid line number in continue command
|
11
|
-
# continue 3
|
12
|
-
*** Line 3 is not a stopping point in file "gcd.rb".
|
13
|
-
# # This time, for sure!
|
14
|
-
# continue 6
|
15
|
-
gcd.rb:6
|
16
|
-
if a > b
|
17
|
-
# where
|
18
|
-
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
|
19
|
-
#1 at line gcd.rb:18
|
20
|
-
# up
|
21
|
-
#1 at line gcd.rb:18
|
22
|
-
# where
|
23
|
-
#0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
|
24
|
-
--> #1 at line gcd.rb:18
|
25
|
-
# down
|
26
|
-
#0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
|
27
|
-
# where
|
28
|
-
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
|
29
|
-
#1 at line gcd.rb:18
|
30
|
-
# frame
|
31
|
-
#0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
|
32
|
-
# where
|
33
|
-
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
|
34
|
-
#1 at line gcd.rb:18
|
35
|
-
# frame -1
|
36
|
-
#1 at line gcd.rb:18
|
37
|
-
# where
|
38
|
-
#0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
|
39
|
-
--> #1 at line gcd.rb:18
|
40
|
-
# up 2
|
41
|
-
*** Adjusting would put us beyond the oldest (initial) frame.
|
42
|
-
# where
|
43
|
-
#0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
|
44
|
-
--> #1 at line gcd.rb:18
|
45
|
-
# down 2
|
46
|
-
*** Adjusting would put us beyond the newest (innermost) frame.
|
47
|
-
# where
|
48
|
-
#0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
|
49
|
-
--> #1 at line gcd.rb:18
|
50
|
-
# frame 0 thread 3
|
51
|
-
*** Thread 3 doesn't exist.
|
52
|
-
# frame 0 thread 1
|
53
|
-
#0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
|
54
|
-
# # finish
|
55
|
-
# quit
|
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
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
|