debugger 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +10 -0
- data/CHANGES +334 -0
- data/ChangeLog +5655 -0
- data/INSTALL.SVN +154 -0
- data/LICENSE +23 -0
- data/Makefile.am +14 -0
- data/OLD_README +122 -0
- data/README.md +10 -0
- data/Rakefile +266 -0
- data/autogen.sh +4 -0
- data/bin/rdebug +398 -0
- data/cli/ruby-debug.rb +173 -0
- data/cli/ruby-debug/command.rb +228 -0
- data/cli/ruby-debug/commands/breakpoints.rb +153 -0
- data/cli/ruby-debug/commands/catchpoint.rb +55 -0
- data/cli/ruby-debug/commands/condition.rb +49 -0
- data/cli/ruby-debug/commands/continue.rb +38 -0
- data/cli/ruby-debug/commands/control.rb +107 -0
- data/cli/ruby-debug/commands/display.rb +120 -0
- data/cli/ruby-debug/commands/edit.rb +48 -0
- data/cli/ruby-debug/commands/enable.rb +202 -0
- data/cli/ruby-debug/commands/eval.rb +176 -0
- data/cli/ruby-debug/commands/finish.rb +42 -0
- data/cli/ruby-debug/commands/frame.rb +301 -0
- data/cli/ruby-debug/commands/help.rb +56 -0
- data/cli/ruby-debug/commands/info.rb +467 -0
- data/cli/ruby-debug/commands/irb.rb +123 -0
- data/cli/ruby-debug/commands/jump.rb +66 -0
- data/cli/ruby-debug/commands/kill.rb +51 -0
- data/cli/ruby-debug/commands/list.rb +94 -0
- data/cli/ruby-debug/commands/method.rb +84 -0
- data/cli/ruby-debug/commands/quit.rb +39 -0
- data/cli/ruby-debug/commands/reload.rb +40 -0
- data/cli/ruby-debug/commands/save.rb +90 -0
- data/cli/ruby-debug/commands/set.rb +221 -0
- data/cli/ruby-debug/commands/show.rb +247 -0
- data/cli/ruby-debug/commands/skip.rb +35 -0
- data/cli/ruby-debug/commands/source.rb +36 -0
- data/cli/ruby-debug/commands/stepping.rb +81 -0
- data/cli/ruby-debug/commands/threads.rb +189 -0
- data/cli/ruby-debug/commands/tmate.rb +36 -0
- data/cli/ruby-debug/commands/trace.rb +57 -0
- data/cli/ruby-debug/commands/variables.rb +199 -0
- data/cli/ruby-debug/debugger.rb +5 -0
- data/cli/ruby-debug/helper.rb +69 -0
- data/cli/ruby-debug/interface.rb +232 -0
- data/cli/ruby-debug/processor.rb +474 -0
- data/configure.ac +12 -0
- data/debugger.gemspec +24 -0
- data/doc/.cvsignore +42 -0
- data/doc/Makefile.am +63 -0
- data/doc/emacs-notes.txt +38 -0
- data/doc/hanoi.rb +35 -0
- data/doc/primes.rb +28 -0
- data/doc/rdebug-emacs.texi +1030 -0
- data/doc/rdebug.1 +241 -0
- data/doc/ruby-debug.texi +3791 -0
- data/doc/test-tri2.rb +18 -0
- data/doc/tri3.rb +8 -0
- data/doc/triangle.rb +12 -0
- data/emacs/Makefile.am +130 -0
- data/emacs/rdebug-annotate.el +385 -0
- data/emacs/rdebug-breaks.el +407 -0
- data/emacs/rdebug-cmd.el +92 -0
- data/emacs/rdebug-core.el +502 -0
- data/emacs/rdebug-dbg.el +62 -0
- data/emacs/rdebug-error.el +79 -0
- data/emacs/rdebug-fns.el +111 -0
- data/emacs/rdebug-frames.el +230 -0
- data/emacs/rdebug-gud.el +242 -0
- data/emacs/rdebug-help.el +104 -0
- data/emacs/rdebug-info.el +83 -0
- data/emacs/rdebug-layouts.el +180 -0
- data/emacs/rdebug-locring.el +118 -0
- data/emacs/rdebug-output.el +106 -0
- data/emacs/rdebug-regexp.el +118 -0
- data/emacs/rdebug-secondary.el +260 -0
- data/emacs/rdebug-shortkey.el +175 -0
- data/emacs/rdebug-source.el +568 -0
- data/emacs/rdebug-track.el +392 -0
- data/emacs/rdebug-varbuf.el +150 -0
- data/emacs/rdebug-vars.el +125 -0
- data/emacs/rdebug-watch.el +132 -0
- data/emacs/rdebug.el +326 -0
- data/emacs/test/elk-test.el +242 -0
- data/emacs/test/test-annotate.el +103 -0
- data/emacs/test/test-cmd.el +116 -0
- data/emacs/test/test-core.el +104 -0
- data/emacs/test/test-fns.el +65 -0
- data/emacs/test/test-frames.el +62 -0
- data/emacs/test/test-gud.el +35 -0
- data/emacs/test/test-indent.el +58 -0
- data/emacs/test/test-regexp.el +144 -0
- data/emacs/test/test-shortkey.el +61 -0
- data/ext/ruby_debug/breakpoint.c +586 -0
- data/ext/ruby_debug/extconf.rb +49 -0
- data/ext/ruby_debug/ruby_debug.c +2624 -0
- data/ext/ruby_debug/ruby_debug.h +148 -0
- data/lib/ChangeLog +1065 -0
- data/lib/debugger.rb +7 -0
- data/lib/debugger/version.rb +3 -0
- data/lib/ruby-debug-base.rb +304 -0
- data/rdbg.rb +33 -0
- data/runner.sh +7 -0
- data/svn2cl_usermap +3 -0
- data/test/.cvsignore +1 -0
- data/test/base/base.rb +74 -0
- data/test/base/binding.rb +31 -0
- data/test/base/catchpoint.rb +26 -0
- data/test/base/load.rb +40 -0
- data/test/bp_loop_issue.rb +3 -0
- data/test/classes.rb +11 -0
- data/test/cli/commands/catchpoint_test.rb +36 -0
- data/test/cli/commands/unit/regexp.rb +42 -0
- data/test/config.yaml +8 -0
- data/test/data/annotate.cmd +29 -0
- data/test/data/annotate.right +139 -0
- data/test/data/break_bad.cmd +18 -0
- data/test/data/break_bad.right +28 -0
- data/test/data/break_loop_bug.cmd +5 -0
- data/test/data/break_loop_bug.right +15 -0
- data/test/data/breakpoints.cmd +38 -0
- data/test/data/breakpoints.right +98 -0
- data/test/data/catch.cmd +20 -0
- data/test/data/catch.right +49 -0
- data/test/data/catch2.cmd +19 -0
- data/test/data/catch2.right +65 -0
- data/test/data/catch3.cmd +11 -0
- data/test/data/catch3.right +37 -0
- data/test/data/condition.cmd +28 -0
- data/test/data/condition.right +65 -0
- data/test/data/ctrl.cmd +23 -0
- data/test/data/ctrl.right +70 -0
- data/test/data/display.cmd +24 -0
- data/test/data/display.right +44 -0
- data/test/data/dollar-0.right +2 -0
- data/test/data/dollar-0a.right +2 -0
- data/test/data/dollar-0b.right +2 -0
- data/test/data/edit.cmd +12 -0
- data/test/data/edit.right +19 -0
- data/test/data/emacs_basic.cmd +43 -0
- data/test/data/emacs_basic.right +106 -0
- data/test/data/enable.cmd +20 -0
- data/test/data/enable.right +36 -0
- data/test/data/finish.cmd +16 -0
- data/test/data/finish.right +31 -0
- data/test/data/frame.cmd +26 -0
- data/test/data/frame.right +55 -0
- data/test/data/help.cmd +20 -0
- data/test/data/help.right +21 -0
- data/test/data/history.right +7 -0
- data/test/data/info-thread.cmd +13 -0
- data/test/data/info-thread.right +37 -0
- data/test/data/info-var-bug2.cmd +5 -0
- data/test/data/info-var-bug2.right +10 -0
- data/test/data/info-var.cmd +23 -0
- data/test/data/info-var.right +52 -0
- data/test/data/info.cmd +21 -0
- data/test/data/info.right +65 -0
- data/test/data/jump.cmd +16 -0
- data/test/data/jump.right +56 -0
- data/test/data/jump2.cmd +16 -0
- data/test/data/jump2.right +44 -0
- data/test/data/linetrace.cmd +6 -0
- data/test/data/linetrace.right +23 -0
- data/test/data/list.cmd +19 -0
- data/test/data/list.right +127 -0
- data/test/data/method.cmd +10 -0
- data/test/data/method.right +21 -0
- data/test/data/methodsig.cmd +10 -0
- data/test/data/methodsig.right +20 -0
- data/test/data/next.cmd +22 -0
- data/test/data/next.right +61 -0
- data/test/data/noquit.right +1 -0
- data/test/data/output.cmd +6 -0
- data/test/data/output.right +31 -0
- data/test/data/pm-bug.cmd +7 -0
- data/test/data/pm-bug.right +12 -0
- data/test/data/post-mortem-next.cmd +8 -0
- data/test/data/post-mortem-next.right +14 -0
- data/test/data/post-mortem-osx.right +31 -0
- data/test/data/post-mortem.cmd +13 -0
- data/test/data/post-mortem.right +32 -0
- data/test/data/quit.cmd +6 -0
- data/test/data/quit.right +0 -0
- data/test/data/raise.cmd +11 -0
- data/test/data/raise.right +23 -0
- data/test/data/save.cmd +34 -0
- data/test/data/save.right +59 -0
- data/test/data/scope-var.cmd +42 -0
- data/test/data/scope-var.right +587 -0
- data/test/data/setshow.cmd +56 -0
- data/test/data/setshow.right +98 -0
- data/test/data/source.cmd +5 -0
- data/test/data/source.right +15 -0
- data/test/data/stepping.cmd +21 -0
- data/test/data/stepping.right +50 -0
- data/test/data/test-init-cygwin.right +7 -0
- data/test/data/test-init-osx.right +4 -0
- data/test/data/test-init.right +5 -0
- data/test/data/trace.right +14 -0
- data/test/dollar-0.rb +5 -0
- data/test/gcd-dbg-nox.rb +31 -0
- data/test/gcd-dbg.rb +30 -0
- data/test/gcd.rb +18 -0
- data/test/helper.rb +144 -0
- data/test/info-var-bug.rb +47 -0
- data/test/info-var-bug2.rb +2 -0
- data/test/jump.rb +14 -0
- data/test/jump2.rb +27 -0
- data/test/next.rb +18 -0
- data/test/null.rb +1 -0
- data/test/output.rb +2 -0
- data/test/pm-base.rb +22 -0
- data/test/pm-bug.rb +3 -0
- data/test/pm-catch.rb +12 -0
- data/test/pm-catch2.rb +27 -0
- data/test/pm-catch3.rb +47 -0
- data/test/pm.rb +11 -0
- data/test/raise.rb +3 -0
- data/test/rdebug-save.1 +7 -0
- data/test/runall +12 -0
- data/test/scope-var.rb +29 -0
- data/test/tdebug.rb +248 -0
- data/test/test-annotate.rb +25 -0
- data/test/test-break-bad.rb +37 -0
- data/test/test-breakpoints.rb +25 -0
- data/test/test-catch.rb +25 -0
- data/test/test-catch2.rb +25 -0
- data/test/test-catch3.rb +25 -0
- data/test/test-condition.rb +25 -0
- data/test/test-ctrl.rb +55 -0
- data/test/test-display.rb +26 -0
- data/test/test-dollar-0.rb +40 -0
- data/test/test-edit.rb +26 -0
- data/test/test-emacs-basic.rb +26 -0
- data/test/test-enable.rb +25 -0
- data/test/test-finish.rb +34 -0
- data/test/test-frame.rb +34 -0
- data/test/test-help.rb +60 -0
- data/test/test-hist.rb +68 -0
- data/test/test-info-thread.rb +32 -0
- data/test/test-info-var.rb +47 -0
- data/test/test-info.rb +26 -0
- data/test/test-init.rb +44 -0
- data/test/test-jump.rb +35 -0
- data/test/test-list.rb +25 -0
- data/test/test-method.rb +34 -0
- data/test/test-next.rb +25 -0
- data/test/test-output.rb +26 -0
- data/test/test-quit.rb +30 -0
- data/test/test-raise.rb +25 -0
- data/test/test-save.rb +31 -0
- data/test/test-scope-var.rb +25 -0
- data/test/test-setshow.rb +25 -0
- data/test/test-source.rb +25 -0
- data/test/test-stepping.rb +26 -0
- data/test/test-trace.rb +47 -0
- data/test/thread1.rb +26 -0
- data/test/trunc-call.rb +31 -0
- metadata +364 -0
data/test/data/list.cmd
ADDED
@@ -0,0 +1,19 @@
|
|
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
|
+
|
@@ -0,0 +1,127 @@
|
|
1
|
+
gcd.rb:4
|
2
|
+
def gcd(a, b)
|
3
|
+
# # ********************************************************
|
4
|
+
# # This tests the 'list' command.
|
5
|
+
# # ********************************************************
|
6
|
+
# set basename on
|
7
|
+
basename is on.
|
8
|
+
# list
|
9
|
+
[-1, 8] in ./gcd.rb
|
10
|
+
1 #!/usr/bin/env ruby
|
11
|
+
2
|
12
|
+
3 # GCD. We assume positive numbers
|
13
|
+
=> 4 def gcd(a, b)
|
14
|
+
5 # Make: a <= b
|
15
|
+
6 if a > b
|
16
|
+
7 a, b = [b, a]
|
17
|
+
8 end
|
18
|
+
# list
|
19
|
+
[9, 18] in ./gcd.rb
|
20
|
+
9
|
21
|
+
10 return nil if a <= 0
|
22
|
+
11
|
23
|
+
12 if a == 1 or b-a == 0
|
24
|
+
13 return a
|
25
|
+
14 end
|
26
|
+
15 gcd(b-a, a)
|
27
|
+
16 end
|
28
|
+
17
|
29
|
+
18 gcd(3,5)
|
30
|
+
# list
|
31
|
+
[9, 18] in ./gcd.rb
|
32
|
+
9
|
33
|
+
10 return nil if a <= 0
|
34
|
+
11
|
35
|
+
12 if a == 1 or b-a == 0
|
36
|
+
13 return a
|
37
|
+
14 end
|
38
|
+
15 gcd(b-a, a)
|
39
|
+
16 end
|
40
|
+
17
|
41
|
+
18 gcd(3,5)
|
42
|
+
# list
|
43
|
+
[9, 18] in ./gcd.rb
|
44
|
+
9
|
45
|
+
10 return nil if a <= 0
|
46
|
+
11
|
47
|
+
12 if a == 1 or b-a == 0
|
48
|
+
13 return a
|
49
|
+
14 end
|
50
|
+
15 gcd(b-a, a)
|
51
|
+
16 end
|
52
|
+
17
|
53
|
+
18 gcd(3,5)
|
54
|
+
# list -
|
55
|
+
[-1, 8] in ./gcd.rb
|
56
|
+
1 #!/usr/bin/env ruby
|
57
|
+
2
|
58
|
+
3 # GCD. We assume positive numbers
|
59
|
+
=> 4 def gcd(a, b)
|
60
|
+
5 # Make: a <= b
|
61
|
+
6 if a > b
|
62
|
+
7 a, b = [b, a]
|
63
|
+
8 end
|
64
|
+
# list -
|
65
|
+
[-1, 8] in ./gcd.rb
|
66
|
+
1 #!/usr/bin/env ruby
|
67
|
+
2
|
68
|
+
3 # GCD. We assume positive numbers
|
69
|
+
=> 4 def gcd(a, b)
|
70
|
+
5 # Make: a <= b
|
71
|
+
6 if a > b
|
72
|
+
7 a, b = [b, a]
|
73
|
+
8 end
|
74
|
+
# list -
|
75
|
+
[-1, 8] in ./gcd.rb
|
76
|
+
1 #!/usr/bin/env ruby
|
77
|
+
2
|
78
|
+
3 # GCD. We assume positive numbers
|
79
|
+
=> 4 def gcd(a, b)
|
80
|
+
5 # Make: a <= b
|
81
|
+
6 if a > b
|
82
|
+
7 a, b = [b, a]
|
83
|
+
8 end
|
84
|
+
# list -
|
85
|
+
[-1, 8] in ./gcd.rb
|
86
|
+
1 #!/usr/bin/env ruby
|
87
|
+
2
|
88
|
+
3 # GCD. We assume positive numbers
|
89
|
+
=> 4 def gcd(a, b)
|
90
|
+
5 # Make: a <= b
|
91
|
+
6 if a > b
|
92
|
+
7 a, b = [b, a]
|
93
|
+
8 end
|
94
|
+
# list 1
|
95
|
+
[-4, 5] in ./gcd.rb
|
96
|
+
1 #!/usr/bin/env ruby
|
97
|
+
2
|
98
|
+
3 # GCD. We assume positive numbers
|
99
|
+
=> 4 def gcd(a, b)
|
100
|
+
5 # Make: a <= b
|
101
|
+
# list 20
|
102
|
+
[15, 24] in ./gcd.rb
|
103
|
+
15 gcd(b-a, a)
|
104
|
+
16 end
|
105
|
+
17
|
106
|
+
18 gcd(3,5)
|
107
|
+
# set listsize 5
|
108
|
+
Number of source lines to list by default is 5.
|
109
|
+
# list 5
|
110
|
+
[3, 7] in ./gcd.rb
|
111
|
+
3 # GCD. We assume positive numbers
|
112
|
+
=> 4 def gcd(a, b)
|
113
|
+
5 # Make: a <= b
|
114
|
+
6 if a > b
|
115
|
+
7 a, b = [b, a]
|
116
|
+
# list =
|
117
|
+
[2, 6] in ./gcd.rb
|
118
|
+
2
|
119
|
+
3 # GCD. We assume positive numbers
|
120
|
+
=> 4 def gcd(a, b)
|
121
|
+
5 # Make: a <= b
|
122
|
+
6 if a > b
|
123
|
+
# list 3-4
|
124
|
+
[3, 4] in ./gcd.rb
|
125
|
+
3 # GCD. We assume positive numbers
|
126
|
+
=> 4 def gcd(a, b)
|
127
|
+
#
|
@@ -0,0 +1,21 @@
|
|
1
|
+
classes.rb:1
|
2
|
+
class Mine
|
3
|
+
# # ********************************************************
|
4
|
+
# # This tests the 'method' command
|
5
|
+
# # ********************************************************
|
6
|
+
# set debuggertesting on
|
7
|
+
Currently testing the debugger is on.
|
8
|
+
# set autoeval off
|
9
|
+
autoeval is off.
|
10
|
+
# b 11
|
11
|
+
Breakpoint 1 file ./classes.rb, line 11
|
12
|
+
# c
|
13
|
+
Breakpoint 1 at classes.rb:11
|
14
|
+
classes.rb:11
|
15
|
+
metoo = Mine(new)
|
16
|
+
# method Mine
|
17
|
+
mymethod
|
18
|
+
|
19
|
+
# m iv me
|
20
|
+
@myvar = "init"
|
21
|
+
# quit
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# ********************************************************
|
2
|
+
# This tests the 'method' command
|
3
|
+
# ********************************************************
|
4
|
+
set debuggertesting on
|
5
|
+
set autoeval off
|
6
|
+
b 3
|
7
|
+
c
|
8
|
+
method sig initialize
|
9
|
+
method sig mymethod
|
10
|
+
quit
|
@@ -0,0 +1,20 @@
|
|
1
|
+
classes.rb:1
|
2
|
+
class Mine
|
3
|
+
# # ********************************************************
|
4
|
+
# # This tests the 'method' command
|
5
|
+
# # ********************************************************
|
6
|
+
# set debuggertesting on
|
7
|
+
Currently testing the debugger is on.
|
8
|
+
# set autoeval off
|
9
|
+
autoeval is off.
|
10
|
+
# b 3
|
11
|
+
Breakpoint 1 file ./classes.rb, line 3
|
12
|
+
# c
|
13
|
+
Breakpoint 1 at classes.rb:3
|
14
|
+
classes.rb:3
|
15
|
+
@myvar = 'init'
|
16
|
+
# method sig initialize
|
17
|
+
Mine#initialize()
|
18
|
+
# method sig mymethod
|
19
|
+
Mine#mymethod(a, b=5, &block)
|
20
|
+
# quit
|
data/test/data/next.cmd
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# ********************************************************
|
2
|
+
# This tests next command and break at proc def
|
3
|
+
# ********************************************************
|
4
|
+
set debuggertesting on
|
5
|
+
set callstyle last
|
6
|
+
set force off
|
7
|
+
break 1
|
8
|
+
next
|
9
|
+
next
|
10
|
+
next
|
11
|
+
next
|
12
|
+
next
|
13
|
+
next
|
14
|
+
next
|
15
|
+
next
|
16
|
+
next
|
17
|
+
next
|
18
|
+
next
|
19
|
+
next
|
20
|
+
next
|
21
|
+
next
|
22
|
+
next
|
@@ -0,0 +1,61 @@
|
|
1
|
+
next.rb:1
|
2
|
+
def foo
|
3
|
+
# # ********************************************************
|
4
|
+
# # This tests next command and break at proc def
|
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 force off
|
11
|
+
force-stepping is off.
|
12
|
+
# break 1
|
13
|
+
Breakpoint 1 file ./next.rb, line 1
|
14
|
+
# next
|
15
|
+
next.rb:7
|
16
|
+
a = 1
|
17
|
+
# next
|
18
|
+
next.rb:8
|
19
|
+
if a == 1
|
20
|
+
# next
|
21
|
+
next.rb:9
|
22
|
+
a += 2
|
23
|
+
# next
|
24
|
+
next.rb:10
|
25
|
+
puts a
|
26
|
+
# next
|
27
|
+
3
|
28
|
+
next.rb:12
|
29
|
+
foo
|
30
|
+
# next
|
31
|
+
Breakpoint 1 at next.rb:1
|
32
|
+
next.rb:1
|
33
|
+
def foo
|
34
|
+
# next
|
35
|
+
next.rb:2
|
36
|
+
a = 1
|
37
|
+
# next
|
38
|
+
next.rb:3
|
39
|
+
puts "Stop here"
|
40
|
+
# next
|
41
|
+
Stop here
|
42
|
+
next.rb:4
|
43
|
+
b = 2
|
44
|
+
# next
|
45
|
+
next.rb:13
|
46
|
+
b = 2
|
47
|
+
# next
|
48
|
+
next.rb:14
|
49
|
+
b += 2
|
50
|
+
# next
|
51
|
+
next.rb:15
|
52
|
+
puts "one"
|
53
|
+
# next
|
54
|
+
one
|
55
|
+
next.rb:16
|
56
|
+
c = 4
|
57
|
+
# next
|
58
|
+
next.rb:17
|
59
|
+
puts "two"
|
60
|
+
# next
|
61
|
+
two
|
@@ -0,0 +1 @@
|
|
1
|
+
The program has finished and will be restarted.
|
@@ -0,0 +1,31 @@
|
|
1
|
+
starting
|
2
|
+
stopped
|
3
|
+
breakpoints
|
4
|
+
No breakpoints.
|
5
|
+
|
6
|
+
stack
|
7
|
+
--> #0 at line ./output.rb:1
|
8
|
+
|
9
|
+
variables
|
10
|
+
self = main
|
11
|
+
|
12
|
+
source ./output.rb:1
|
13
|
+
puts "one"
|
14
|
+
# # ********************************************************
|
15
|
+
# # This tests the "starting" annotation
|
16
|
+
# # ********************************************************
|
17
|
+
# step
|
18
|
+
starting
|
19
|
+
one
|
20
|
+
stopped
|
21
|
+
stack
|
22
|
+
--> #0 at line ./output.rb:2
|
23
|
+
|
24
|
+
variables
|
25
|
+
self = main
|
26
|
+
|
27
|
+
source ./output.rb:2
|
28
|
+
puts "two"
|
29
|
+
# step
|
30
|
+
starting
|
31
|
+
two
|
@@ -0,0 +1,12 @@
|
|
1
|
+
pm-bug.rb:1
|
2
|
+
a = 1
|
3
|
+
# # ********************************************************
|
4
|
+
# # This tests the edit command
|
5
|
+
# # ********************************************************
|
6
|
+
# set debuggertesting on
|
7
|
+
Currently testing the debugger is on.
|
8
|
+
# # Tracker #22118
|
9
|
+
# i v
|
10
|
+
a = nil
|
11
|
+
self = main
|
12
|
+
# quit
|
@@ -0,0 +1,14 @@
|
|
1
|
+
pm.rb:3
|
2
|
+
def zero_div
|
3
|
+
# # ******************************************************
|
4
|
+
# # This tests running "next" over code that post-mortems
|
5
|
+
# # ******************************************************
|
6
|
+
# set debuggertesting on
|
7
|
+
Currently testing the debugger is on.
|
8
|
+
# next 2
|
9
|
+
pm.rb:8
|
10
|
+
zero_div
|
11
|
+
# next
|
12
|
+
pm.rb:5
|
13
|
+
1/0
|
14
|
+
# quit
|
@@ -0,0 +1,31 @@
|
|
1
|
+
pm.rb:3
|
2
|
+
def zero_div
|
3
|
+
# # ***************************************************
|
4
|
+
# # This tests post-mortem handling.
|
5
|
+
# # ***************************************************
|
6
|
+
# set debuggertesting on
|
7
|
+
Currently testing the debugger is on.
|
8
|
+
# continue
|
9
|
+
pm.rb:5
|
10
|
+
1/0
|
11
|
+
# # Should have got a divide by 0 error
|
12
|
+
# info program
|
13
|
+
The program crashed.
|
14
|
+
Exception: #<ZeroDivisionError: divided by 0>
|
15
|
+
# where
|
16
|
+
--> #0 / at line pm.rb:5
|
17
|
+
#1 at line pm.rb:8
|
18
|
+
# up
|
19
|
+
#1 at line pm.rb:8
|
20
|
+
# p x
|
21
|
+
2
|
22
|
+
# help
|
23
|
+
Type 'help <command-name>' for help on a specific command
|
24
|
+
|
25
|
+
Available commands:
|
26
|
+
backtrace delete edit frame list ps restart source undisplay
|
27
|
+
break disable enable help method putl save thread up
|
28
|
+
catch display eval info p quit set tmate var
|
29
|
+
condition down exit irb pp reload show trace where
|
30
|
+
|
31
|
+
# quit
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# ***************************************************
|
2
|
+
# This tests post-mortem handling.
|
3
|
+
# ***************************************************
|
4
|
+
set debuggertesting on
|
5
|
+
continue
|
6
|
+
# Should have got a divide by 0 error
|
7
|
+
info program
|
8
|
+
where
|
9
|
+
up
|
10
|
+
p x
|
11
|
+
help
|
12
|
+
quit
|
13
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
pm.rb:3
|
2
|
+
def zero_div
|
3
|
+
# # ***************************************************
|
4
|
+
# # This tests post-mortem handling.
|
5
|
+
# # ***************************************************
|
6
|
+
# set debuggertesting on
|
7
|
+
Currently testing the debugger is on.
|
8
|
+
# continue
|
9
|
+
pm.rb:5
|
10
|
+
1/0
|
11
|
+
# # Should have got a divide by 0 error
|
12
|
+
# info program
|
13
|
+
The program crashed.
|
14
|
+
Exception: #<ZeroDivisionError: divided by 0>
|
15
|
+
# where
|
16
|
+
--> #0 / at line pm.rb:5
|
17
|
+
#1 at line pm.rb:8
|
18
|
+
# up
|
19
|
+
#1 at line pm.rb:8
|
20
|
+
# p x
|
21
|
+
2
|
22
|
+
# help
|
23
|
+
Type 'help <command-name>' for help on a specific command
|
24
|
+
|
25
|
+
Available commands:
|
26
|
+
backtrace delete enable info p reload source var
|
27
|
+
break disable eval irb pp restart thread where
|
28
|
+
catch display exit kill ps save trace
|
29
|
+
condition down frame list putl set undisplay
|
30
|
+
continue edit help method quit show up
|
31
|
+
|
32
|
+
# quit
|