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.
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/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
@@ -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
-
@@ -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
@@ -1,5 +0,0 @@
1
- # Test the source command
2
- # rdebug-save has breakpoint commands
3
- set debuggertesting on
4
- source ./rdebug-save.1
5
- quit
@@ -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
@@ -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
@@ -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
@@ -1,7 +0,0 @@
1
- gcd-dbg.rb:18
2
- if a > b
3
- (rdb:1) p Debugger::PROG_SCRIPT
4
- "./gcd-dbg.rb"
5
- (rdb:1) show args
6
- Argument list to give program being debugged when it is started is "5".
7
- (rdb:1) quit unconditionally
@@ -1,4 +0,0 @@
1
- gcd-dbg.rb:18
2
- if a > b
3
- "./gcd-dbg.rb"
4
- Argument list to give program being debugged when it is started is "5".
@@ -1,5 +0,0 @@
1
- gcd-dbg.rb:18
2
- if a > b
3
- (rdb:1) "./example/gcd-dbg.rb"
4
- (rdb:1) Argument list to give program being debugged when it is started is "5".
5
- (rdb:1)
@@ -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
@@ -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
@@ -1 +0,0 @@
1
- puts "a"
@@ -1,3 +0,0 @@
1
- at_exit do
2
- puts "Hello world!"
3
- end
@@ -1 +0,0 @@
1
- puts "b"
@@ -1,3 +0,0 @@
1
- 1.upto(2) {
2
- sleep 0.01
3
- }
@@ -1,2 +0,0 @@
1
- require File.expand_path("../a/example.rb", __FILE__)
2
- require File.expand_path("../b/example.rb", __FILE__)
@@ -1,8 +0,0 @@
1
- class A
2
- def A.show
3
- puts "hi"
4
- end
5
- end
6
- x = 1
7
- A.show
8
- y = 2
@@ -1,11 +0,0 @@
1
- class Mine
2
- def initialize
3
- @myvar = 'init'
4
- end
5
- def mymethod(a, b=5, &block)
6
- end
7
- def self.classmeth
8
- end
9
- end
10
- me = Mine.new
11
- metoo = Mine(new)
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # A test to see that rdebug set's $0 properly.
3
- puts $0
4
- puts $PROGRAM_NAME
5
- puts __FILE__
6
-
@@ -1,4 +0,0 @@
1
- def foo(n)
2
- 1/0
3
- end
4
- foo(5)