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.
Files changed (166) hide show
  1. data/ChangeLog +54 -0
  2. data/Rakefile +34 -239
  3. metadata +15 -182
  4. data/test/base/base.rb +0 -77
  5. data/test/base/binding.rb +0 -22
  6. data/test/base/catchpoint.rb +0 -19
  7. data/test/base/load.rb +0 -44
  8. data/test/base/reload_bug.rb +0 -8
  9. data/test/cli/commands/catchpoint_test.rb +0 -24
  10. data/test/cli/commands/unit/regexp.rb +0 -36
  11. data/test/config.yaml +0 -8
  12. data/test/data/annotate.cmd +0 -29
  13. data/test/data/annotate.right +0 -139
  14. data/test/data/at-exit.cmd +0 -4
  15. data/test/data/at-exit.right +0 -12
  16. data/test/data/break_bad.cmd +0 -16
  17. data/test/data/break_bad.right +0 -26
  18. data/test/data/break_loop_bug.cmd +0 -5
  19. data/test/data/break_loop_bug.right +0 -15
  20. data/test/data/break_tracelines.cmd +0 -9
  21. data/test/data/break_tracelines.right +0 -17
  22. data/test/data/breakpoints-basename.cmd +0 -2
  23. data/test/data/breakpoints-basename.right +0 -10
  24. data/test/data/breakpoints.cmd +0 -37
  25. data/test/data/breakpoints.right +0 -96
  26. data/test/data/brkpt-class-bug.cmd +0 -9
  27. data/test/data/brkpt-class-bug.right +0 -18
  28. data/test/data/catch.cmd +0 -18
  29. data/test/data/catch.right +0 -41
  30. data/test/data/condition.cmd +0 -29
  31. data/test/data/condition.right +0 -67
  32. data/test/data/continue_bad.cmd +0 -4
  33. data/test/data/continue_bad.right +0 -9
  34. data/test/data/ctrl.cmd +0 -23
  35. data/test/data/ctrl.right +0 -70
  36. data/test/data/display.cmd +0 -24
  37. data/test/data/display.right +0 -44
  38. data/test/data/dollar-0.right +0 -3
  39. data/test/data/dollar-0a.right +0 -3
  40. data/test/data/dollar-0b.right +0 -3
  41. data/test/data/edit.cmd +0 -12
  42. data/test/data/edit.right +0 -19
  43. data/test/data/emacs_basic.cmd +0 -10
  44. data/test/data/emacs_basic.right +0 -24
  45. data/test/data/enable.cmd +0 -20
  46. data/test/data/enable.right +0 -36
  47. data/test/data/except-bug1.cmd +0 -7
  48. data/test/data/except-bug1.right +0 -13
  49. data/test/data/file-with-space.cmd +0 -7
  50. data/test/data/file-with-space.right +0 -9
  51. data/test/data/finish.cmd +0 -16
  52. data/test/data/finish.right +0 -31
  53. data/test/data/frame.cmd +0 -29
  54. data/test/data/frame.right +0 -62
  55. data/test/data/help.cmd +0 -20
  56. data/test/data/help.right +0 -21
  57. data/test/data/history.right +0 -7
  58. data/test/data/info-file-break.cmd +0 -4
  59. data/test/data/info-file-break.right +0 -11
  60. data/test/data/info-thread.cmd +0 -13
  61. data/test/data/info-thread.right +0 -37
  62. data/test/data/info-var-bug2.cmd +0 -5
  63. data/test/data/info-var-bug2.right +0 -10
  64. data/test/data/info-var.cmd +0 -23
  65. data/test/data/info-var.right +0 -52
  66. data/test/data/info.cmd +0 -21
  67. data/test/data/info.right +0 -80
  68. data/test/data/linetrace-jruby.right +0 -23
  69. data/test/data/linetrace.cmd +0 -6
  70. data/test/data/linetrace.right +0 -32
  71. data/test/data/linetracep.cmd +0 -7
  72. data/test/data/linetracep.right +0 -25
  73. data/test/data/list.cmd +0 -19
  74. data/test/data/list.right +0 -127
  75. data/test/data/method.cmd +0 -10
  76. data/test/data/method.right +0 -21
  77. data/test/data/methodsig.cmd +0 -10
  78. data/test/data/methodsig.right +0 -20
  79. data/test/data/noquit.right +0 -1
  80. data/test/data/output.cmd +0 -6
  81. data/test/data/output.right +0 -31
  82. data/test/data/pm-bug.cmd +0 -7
  83. data/test/data/pm-bug.right +0 -12
  84. data/test/data/post-mortem-next.cmd +0 -8
  85. data/test/data/post-mortem-next.right +0 -14
  86. data/test/data/post-mortem-osx.right +0 -32
  87. data/test/data/post-mortem.cmd +0 -13
  88. data/test/data/post-mortem.right +0 -32
  89. data/test/data/quit.cmd +0 -6
  90. data/test/data/quit.right +0 -9
  91. data/test/data/raise-jruby.right +0 -26
  92. data/test/data/raise.cmd +0 -11
  93. data/test/data/raise.right +0 -26
  94. data/test/data/save.cmd +0 -34
  95. data/test/data/save.right +0 -61
  96. data/test/data/setshow.cmd +0 -46
  97. data/test/data/setshow.right +0 -80
  98. data/test/data/source.cmd +0 -5
  99. data/test/data/source.right +0 -15
  100. data/test/data/stepping.cmd +0 -21
  101. data/test/data/stepping.right +0 -50
  102. data/test/data/test-init-cygwin.right +0 -7
  103. data/test/data/test-init-osx.right +0 -4
  104. data/test/data/test-init.right +0 -5
  105. data/test/data/trace-jruby.right +0 -14
  106. data/test/data/trace.right +0 -23
  107. data/test/example/a/example.rb +0 -1
  108. data/test/example/at-exit.rb +0 -3
  109. data/test/example/b/example.rb +0 -1
  110. data/test/example/bp_loop_issue.rb +0 -3
  111. data/test/example/breakpoints-basename.rb +0 -2
  112. data/test/example/brkpt-class-bug.rb +0 -8
  113. data/test/example/classes.rb +0 -11
  114. data/test/example/dollar-0.rb +0 -6
  115. data/test/example/except-bug1.rb +0 -4
  116. data/test/example/file with space.rb +0 -1
  117. data/test/example/gcd.rb +0 -18
  118. data/test/example/info-var-bug.rb +0 -47
  119. data/test/example/info-var-bug2.rb +0 -2
  120. data/test/example/null.rb +0 -1
  121. data/test/example/output.rb +0 -2
  122. data/test/example/pm-bug.rb +0 -3
  123. data/test/example/pm.rb +0 -11
  124. data/test/example/raise.rb +0 -3
  125. data/test/gcd-dbg-nox.rb +0 -31
  126. data/test/gcd-dbg.rb +0 -30
  127. data/test/helper.rb +0 -167
  128. data/test/pm-base.rb +0 -22
  129. data/test/rdebug-save.1 +0 -7
  130. data/test/tdebug.rb +0 -252
  131. data/test/test-annotate.rb +0 -13
  132. data/test/test-at-exit.rb +0 -13
  133. data/test/test-break-bad.rb +0 -25
  134. data/test/test-breakpoints.rb +0 -24
  135. data/test/test-brkpt-class-bug.rb +0 -13
  136. data/test/test-catch.rb +0 -13
  137. data/test/test-condition.rb +0 -13
  138. data/test/test-ctrl.rb +0 -55
  139. data/test/test-display.rb +0 -14
  140. data/test/test-dollar-0.rb +0 -33
  141. data/test/test-edit.rb +0 -14
  142. data/test/test-emacs-basic.rb +0 -13
  143. data/test/test-enable.rb +0 -13
  144. data/test/test-except-bug1.rb +0 -16
  145. data/test/test-file-with-space.rb +0 -18
  146. data/test/test-finish.rb +0 -22
  147. data/test/test-frame.rb +0 -28
  148. data/test/test-help.rb +0 -60
  149. data/test/test-hist.rb +0 -64
  150. data/test/test-info-thread.rb +0 -24
  151. data/test/test-info-var.rb +0 -30
  152. data/test/test-info.rb +0 -27
  153. data/test/test-init.rb +0 -49
  154. data/test/test-list.rb +0 -14
  155. data/test/test-method.rb +0 -20
  156. data/test/test-output.rb +0 -13
  157. data/test/test-pm.rb +0 -37
  158. data/test/test-quit.rb +0 -13
  159. data/test/test-raise.rb +0 -13
  160. data/test/test-save.rb +0 -22
  161. data/test/test-setshow.rb +0 -13
  162. data/test/test-source.rb +0 -13
  163. data/test/test-stepping.rb +0 -14
  164. data/test/test-trace.rb +0 -40
  165. data/test/thread1.rb +0 -26
  166. data/test/trunc-call.rb +0 -31
data/test/data/list.right DELETED
@@ -1,127 +0,0 @@
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 return 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 return 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 return 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, 18] in gcd.rb
103
- 15 return 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
- #
data/test/data/method.cmd DELETED
@@ -1,10 +0,0 @@
1
- # ********************************************************
2
- # This tests the 'method' command
3
- # ********************************************************
4
- set debuggertesting on
5
- set autoeval off
6
- b 11
7
- c
8
- method Mine
9
- m iv me
10
- quit
@@ -1,21 +0,0 @@
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
@@ -1,10 +0,0 @@
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
@@ -1,20 +0,0 @@
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
@@ -1 +0,0 @@
1
- The program has finished and will be restarted.
data/test/data/output.cmd DELETED
@@ -1,6 +0,0 @@
1
- # ********************************************************
2
- # This tests the "starting" annotation
3
- # ********************************************************
4
- step
5
- step
6
- quit
@@ -1,31 +0,0 @@
1
- starting
2
- stopped
3
- breakpoints
4
- No breakpoints.
5
- 
6
- stack
7
- --> #0 at line example/output.rb:1
8
- 
9
- variables
10
- self = main
11
- 
12
- source example/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 example/output.rb:2
23
- 
24
- variables
25
- self = main
26
- 
27
- source example/output.rb:2
28
- puts "two"
29
- # step
30
- starting
31
- two
data/test/data/pm-bug.cmd DELETED
@@ -1,7 +0,0 @@
1
- # ********************************************************
2
- # This tests the edit command
3
- # ********************************************************
4
- set debuggertesting on
5
- # Tracker #22118
6
- i v
7
- quit
@@ -1,12 +0,0 @@
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
@@ -1,8 +0,0 @@
1
- # ******************************************************
2
- # This tests running "next" over code that post-mortems
3
- # ******************************************************
4
- set debuggertesting on
5
- next 2
6
- next
7
- quit
8
-
@@ -1,14 +0,0 @@
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
@@ -1,32 +0,0 @@
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 up
27
- break disable eval irb pp restart thread var
28
- catch display exit kill ps save tmate where
29
- condition down frame list putl set trace
30
- continue edit help method quit show undisplay
31
-
32
- # quit
@@ -1,13 +0,0 @@
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
-
@@ -1,32 +0,0 @@
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
data/test/data/quit.cmd DELETED
@@ -1,6 +0,0 @@
1
- # ***************************************************
2
- # This tests the quit.
3
- # ***************************************************
4
- set debuggertesting on
5
- # FIXME need to test --no-quit.
6
- quit
data/test/data/quit.right DELETED
@@ -1,9 +0,0 @@
1
- gcd.rb:4
2
- def gcd(a, b)
3
- # # ***************************************************
4
- # # This tests the quit.
5
- # # ***************************************************
6
- # set debuggertesting on
7
- Currently testing the debugger is on.
8
- # # FIXME need to test --no-quit.
9
- # quit
@@ -1,26 +0,0 @@
1
- raise.rb:3
2
- raise "abc"
3
- # # ********************************************************
4
- # # This tests that the debugger doesn't step into itself
5
- # # when the application doesn't terminate the right way.
6
- # # ********************************************************
7
- # set debuggertesting on
8
- Currently testing the debugger is on.
9
- # catch x
10
- NameError Exception: undefined local variable or method `x' for main:Object
11
- # catch ZeroDivisionError
12
- Catch exception ZeroDivisionError.
13
- # info catch
14
- ZeroDivisionError
15
- # catch 5
16
- Warning 5 is not known to be a Class
17
- Catch exception 5.
18
- # step
19
- ./example/raise.rb:3:in `(root)'
20
- org/jruby/debug/RubyDebugger.java:204:in `debug_load'
21
- ./example/raise.rb:61:in `debug_program'
22
- ./tdebug.rb:251:in `(root)'
23
- org/jruby/RubyKernel.java:1063:in `load'
24
- ./tdebug.rb:23:in `runner'
25
- ../rdbg.rb:32:in `(root)'
26
- Uncaught exception: abc
data/test/data/raise.cmd DELETED
@@ -1,11 +0,0 @@
1
- # ********************************************************
2
- # This tests that the debugger doesn't step into itself
3
- # when the application doesn't terminate the right way.
4
- # ********************************************************
5
- set debuggertesting on
6
- catch x
7
- catch ZeroDivisionError
8
- info catch
9
- catch 5
10
- step
11
- quit
@@ -1,26 +0,0 @@
1
- raise.rb:3
2
- raise "abc"
3
- # # ********************************************************
4
- # # This tests that the debugger doesn't step into itself
5
- # # when the application doesn't terminate the right way.
6
- # # ********************************************************
7
- # set debuggertesting on
8
- Currently testing the debugger is on.
9
- # catch x
10
- NameError Exception: undefined local variable or method `x' for main:Object
11
- # catch ZeroDivisionError
12
- Catch exception ZeroDivisionError.
13
- # info catch
14
- ZeroDivisionError
15
- # catch 5
16
- Warning 5 is not known to be a Class
17
- Catch exception 5.
18
- # step
19
- ./example/raise.rb:3
20
- ./tdebug.rb:61:in `debug_load'
21
- ./tdebug.rb:61:in `debug_program'
22
- ./tdebug.rb:251
23
- ../rdbg.rb:23:in `load'
24
- ../rdbg.rb:23:in `runner'
25
- ../rdbg.rb:32
26
- Uncaught exception: abc