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.
Files changed (241) hide show
  1. data/.gitignore +14 -0
  2. data/.travis.yml +0 -1
  3. data/CHANGELOG.md +9 -0
  4. data/Gemfile +3 -0
  5. data/README.md +2 -0
  6. data/Rakefile +3 -55
  7. data/debugger.gemspec +2 -0
  8. data/lib/debugger/version.rb +1 -1
  9. data/lib/ruby-debug-base.rb +3 -1
  10. data/lib/ruby-debug/commands/irb.rb +1 -1
  11. data/lib/ruby-debug/commands/jump.rb +1 -1
  12. data/lib/ruby-debug/commands/method.rb +1 -1
  13. data/lib/ruby-debug/commands/show.rb +1 -1
  14. data/lib/ruby-debug/commands/trace.rb +2 -2
  15. data/lib/ruby-debug/commands/variables.rb +3 -3
  16. data/test/breakpoints_test.rb +365 -0
  17. data/test/conditions_test.rb +76 -0
  18. data/test/continue_test.rb +28 -0
  19. data/test/display_test.rb +141 -0
  20. data/test/edit_test.rb +55 -0
  21. data/test/eval_test.rb +92 -0
  22. data/test/examples/breakpoint1.rb +15 -0
  23. data/test/examples/breakpoint2.rb +7 -0
  24. data/test/examples/conditions.rb +4 -0
  25. data/test/examples/continue.rb +4 -0
  26. data/test/examples/display.rb +5 -0
  27. data/test/examples/edit.rb +3 -0
  28. data/test/examples/edit2.rb +3 -0
  29. data/test/examples/eval.rb +4 -0
  30. data/test/examples/finish.rb +20 -0
  31. data/test/examples/frame.rb +31 -0
  32. data/test/examples/help.rb +2 -0
  33. data/test/examples/info.rb +48 -0
  34. data/test/examples/info2.rb +3 -0
  35. data/test/examples/irb.rb +6 -0
  36. data/test/examples/jump.rb +14 -0
  37. data/test/examples/kill.rb +2 -0
  38. data/test/examples/list.rb +12 -0
  39. data/test/examples/method.rb +15 -0
  40. data/test/examples/post_mortem.rb +19 -0
  41. data/test/examples/quit.rb +2 -0
  42. data/test/examples/reload.rb +6 -0
  43. data/test/examples/restart.rb +6 -0
  44. data/test/examples/save.rb +3 -0
  45. data/test/examples/set.rb +3 -0
  46. data/test/examples/set_annotate.rb +12 -0
  47. data/test/examples/settings.rb +1 -0
  48. data/test/examples/show.rb +2 -0
  49. data/test/examples/source.rb +3 -0
  50. data/test/examples/stepping.rb +21 -0
  51. data/test/examples/thread.rb +32 -0
  52. data/test/examples/tmate.rb +10 -0
  53. data/test/examples/trace.rb +7 -0
  54. data/test/examples/trace_threads.rb +20 -0
  55. data/test/examples/variables.rb +26 -0
  56. data/test/finish_test.rb +48 -0
  57. data/test/frame_test.rb +140 -0
  58. data/test/help_test.rb +50 -0
  59. data/test/info_test.rb +325 -0
  60. data/test/irb_test.rb +81 -0
  61. data/test/jump_test.rb +70 -0
  62. data/test/kill_test.rb +47 -0
  63. data/test/list_test.rb +145 -0
  64. data/test/method_test.rb +70 -0
  65. data/test/post_mortem_test.rb +25 -0
  66. data/test/quit_test.rb +55 -0
  67. data/test/reload_test.rb +43 -0
  68. data/test/restart_test.rb +143 -0
  69. data/test/save_test.rb +92 -0
  70. data/test/set_test.rb +163 -0
  71. data/test/show_test.rb +292 -0
  72. data/test/source_test.rb +44 -0
  73. data/test/stepping_test.rb +118 -0
  74. data/test/support/breakpoint.rb +12 -0
  75. data/test/support/context.rb +14 -0
  76. data/test/support/matchers.rb +67 -0
  77. data/test/support/mocha_extensions.rb +71 -0
  78. data/test/support/processor.rb +7 -0
  79. data/test/support/test_dsl.rb +205 -0
  80. data/test/support/test_interface.rb +66 -0
  81. data/test/test_helper.rb +8 -0
  82. data/test/thread_test.rb +122 -0
  83. data/test/tmate_test.rb +43 -0
  84. data/test/trace_test.rb +154 -0
  85. data/test/variables_test.rb +114 -0
  86. metadata +107 -158
  87. data/test/base/base.rb +0 -71
  88. data/test/base/binding.rb +0 -24
  89. data/test/base/catchpoint.rb +0 -22
  90. data/test/base/load.rb +0 -36
  91. data/test/bp_loop_issue.rb +0 -3
  92. data/test/classes.rb +0 -11
  93. data/test/config.yaml +0 -8
  94. data/test/data/annotate.cmd +0 -29
  95. data/test/data/annotate.right +0 -139
  96. data/test/data/break_bad.cmd +0 -18
  97. data/test/data/break_bad.right +0 -28
  98. data/test/data/break_loop_bug.cmd +0 -5
  99. data/test/data/break_loop_bug.right +0 -15
  100. data/test/data/breakpoints.cmd +0 -38
  101. data/test/data/breakpoints.right +0 -98
  102. data/test/data/catch.cmd +0 -20
  103. data/test/data/catch.right +0 -49
  104. data/test/data/catch2.cmd +0 -19
  105. data/test/data/catch2.right +0 -65
  106. data/test/data/catch3.cmd +0 -11
  107. data/test/data/catch3.right +0 -37
  108. data/test/data/condition.cmd +0 -28
  109. data/test/data/condition.right +0 -65
  110. data/test/data/ctrl.cmd +0 -23
  111. data/test/data/ctrl.right +0 -70
  112. data/test/data/display.cmd +0 -24
  113. data/test/data/display.right +0 -44
  114. data/test/data/dollar-0.right +0 -2
  115. data/test/data/dollar-0a.right +0 -2
  116. data/test/data/dollar-0b.right +0 -2
  117. data/test/data/edit.cmd +0 -12
  118. data/test/data/edit.right +0 -19
  119. data/test/data/emacs_basic.cmd +0 -43
  120. data/test/data/emacs_basic.right +0 -106
  121. data/test/data/enable.cmd +0 -20
  122. data/test/data/enable.right +0 -36
  123. data/test/data/finish.cmd +0 -16
  124. data/test/data/finish.right +0 -31
  125. data/test/data/frame.cmd +0 -26
  126. data/test/data/frame.right +0 -55
  127. data/test/data/help.cmd +0 -20
  128. data/test/data/help.right +0 -21
  129. data/test/data/history.right +0 -7
  130. data/test/data/info-thread.cmd +0 -13
  131. data/test/data/info-thread.right +0 -37
  132. data/test/data/info-var-bug2.cmd +0 -5
  133. data/test/data/info-var-bug2.right +0 -10
  134. data/test/data/info-var.cmd +0 -23
  135. data/test/data/info-var.right +0 -52
  136. data/test/data/info.cmd +0 -21
  137. data/test/data/info.right +0 -65
  138. data/test/data/jump.cmd +0 -16
  139. data/test/data/jump.right +0 -56
  140. data/test/data/jump2.cmd +0 -16
  141. data/test/data/jump2.right +0 -44
  142. data/test/data/linetrace.cmd +0 -6
  143. data/test/data/linetrace.right +0 -23
  144. data/test/data/list.cmd +0 -19
  145. data/test/data/list.right +0 -127
  146. data/test/data/method.cmd +0 -10
  147. data/test/data/method.right +0 -21
  148. data/test/data/methodsig.cmd +0 -10
  149. data/test/data/methodsig.right +0 -20
  150. data/test/data/next.cmd +0 -22
  151. data/test/data/next.right +0 -61
  152. data/test/data/noquit.right +0 -1
  153. data/test/data/output.cmd +0 -6
  154. data/test/data/output.right +0 -31
  155. data/test/data/pm-bug.cmd +0 -7
  156. data/test/data/pm-bug.right +0 -12
  157. data/test/data/post-mortem-next.cmd +0 -8
  158. data/test/data/post-mortem-next.right +0 -14
  159. data/test/data/post-mortem-osx.right +0 -31
  160. data/test/data/post-mortem.cmd +0 -13
  161. data/test/data/post-mortem.right +0 -32
  162. data/test/data/quit.cmd +0 -6
  163. data/test/data/quit.right +0 -0
  164. data/test/data/raise.cmd +0 -11
  165. data/test/data/raise.right +0 -23
  166. data/test/data/save.cmd +0 -34
  167. data/test/data/save.right +0 -59
  168. data/test/data/scope-var.cmd +0 -42
  169. data/test/data/scope-var.right +0 -587
  170. data/test/data/setshow.cmd +0 -56
  171. data/test/data/setshow.right +0 -98
  172. data/test/data/source.cmd +0 -5
  173. data/test/data/source.right +0 -15
  174. data/test/data/stepping.cmd +0 -21
  175. data/test/data/stepping.right +0 -50
  176. data/test/data/test-init-cygwin.right +0 -7
  177. data/test/data/test-init-osx.right +0 -4
  178. data/test/data/test-init.right +0 -5
  179. data/test/data/trace.right +0 -14
  180. data/test/dollar-0.rb +0 -5
  181. data/test/gcd-dbg-nox.rb +0 -30
  182. data/test/gcd-dbg.rb +0 -29
  183. data/test/gcd.rb +0 -18
  184. data/test/helper.rb +0 -142
  185. data/test/info-var-bug.rb +0 -47
  186. data/test/info-var-bug2.rb +0 -2
  187. data/test/jump.rb +0 -14
  188. data/test/jump2.rb +0 -27
  189. data/test/lib/commands/catchpoint_test.rb +0 -28
  190. data/test/lib/commands/unit/regexp.rb +0 -38
  191. data/test/next.rb +0 -18
  192. data/test/null.rb +0 -1
  193. data/test/output.rb +0 -2
  194. data/test/pm-base.rb +0 -17
  195. data/test/pm-bug.rb +0 -3
  196. data/test/pm-catch.rb +0 -12
  197. data/test/pm-catch2.rb +0 -27
  198. data/test/pm-catch3.rb +0 -47
  199. data/test/pm.rb +0 -11
  200. data/test/raise.rb +0 -3
  201. data/test/rdebug-save.1 +0 -7
  202. data/test/runall +0 -12
  203. data/test/scope-var.rb +0 -29
  204. data/test/tdebug.rb +0 -246
  205. data/test/test-annotate.rb +0 -24
  206. data/test/test-break-bad.rb +0 -36
  207. data/test/test-breakpoints.rb +0 -24
  208. data/test/test-catch.rb +0 -24
  209. data/test/test-catch2.rb +0 -24
  210. data/test/test-catch3.rb +0 -24
  211. data/test/test-condition.rb +0 -24
  212. data/test/test-ctrl.rb +0 -51
  213. data/test/test-display.rb +0 -25
  214. data/test/test-dollar-0.rb +0 -39
  215. data/test/test-edit.rb +0 -25
  216. data/test/test-emacs-basic.rb +0 -25
  217. data/test/test-enable.rb +0 -24
  218. data/test/test-finish.rb +0 -33
  219. data/test/test-frame.rb +0 -33
  220. data/test/test-help.rb +0 -54
  221. data/test/test-hist.rb +0 -65
  222. data/test/test-info-thread.rb +0 -31
  223. data/test/test-info-var.rb +0 -46
  224. data/test/test-info.rb +0 -25
  225. data/test/test-init.rb +0 -43
  226. data/test/test-jump.rb +0 -34
  227. data/test/test-list.rb +0 -24
  228. data/test/test-method.rb +0 -33
  229. data/test/test-next.rb +0 -24
  230. data/test/test-output.rb +0 -25
  231. data/test/test-quit.rb +0 -29
  232. data/test/test-raise.rb +0 -24
  233. data/test/test-remote.rb +0 -14
  234. data/test/test-save.rb +0 -30
  235. data/test/test-scope-var.rb +0 -24
  236. data/test/test-setshow.rb +0 -24
  237. data/test/test-source.rb +0 -24
  238. data/test/test-stepping.rb +0 -25
  239. data/test/test-trace.rb +0 -46
  240. data/test/thread1.rb +0 -25
  241. data/test/trunc-call.rb +0 -30
data/test/data/catch2.cmd DELETED
@@ -1,19 +0,0 @@
1
- # ***************************************************
2
- # Test catch
3
- # ***************************************************
4
- set debuggertesting on
5
- set autoeval off
6
- set basename on
7
- catch ZeroDivisionError
8
- c
9
- sk
10
- break 27
11
- c
12
- jump -1
13
- break 4
14
- c
15
- p arg = nil
16
- c
17
- jump 7
18
- del 1
19
- c
@@ -1,65 +0,0 @@
1
- pm-catch2.rb:3
2
- def bar(arg)
3
- # # ***************************************************
4
- # # Test catch
5
- # # ***************************************************
6
- # set debuggertesting on
7
- Currently testing the debugger is on.
8
- # set autoeval off
9
- autoeval is off.
10
- # set basename on
11
- basename is on.
12
- # catch ZeroDivisionError
13
- Catch exception ZeroDivisionError.
14
- # c
15
- foo begin
16
- bar begin
17
- Catchpoint at pm-catch2.rb:5: `divided by 0' (ZeroDivisionError)
18
- from tdebug.rb:61:in `debug_program'
19
- from tdebug.rb:247:in `<top (required)>'
20
- from ../rdbg.rb:23:in `load'
21
- from ../rdbg.rb:23:in `runner'
22
- from ../rdbg.rb:32:in `<main>'
23
- pm-catch2.rb:5
24
- 1/0 if arg
25
- # sk
26
- ok
27
- # break 27
28
- Breakpoint 1 file ./pm-catch2.rb, line 27
29
- # c
30
- rescue
31
- 15
32
- Breakpoint 1 at pm-catch2.rb:27
33
- pm-catch2.rb:27
34
- puts "done"
35
- # jump -1
36
- pm-catch2.rb:26
37
- puts zero_div(10)
38
- # break 4
39
- Breakpoint 2 file ./pm-catch2.rb, line 4
40
- # c
41
- foo begin
42
- Breakpoint 2 at pm-catch2.rb:4
43
- pm-catch2.rb:4
44
- puts "bar begin"
45
- # p arg = nil
46
- nil
47
- # c
48
- bar begin
49
- Catchpoint at pm-catch2.rb:6: `ZeroDivisionError' (ZeroDivisionError)
50
- from tdebug.rb:61:in `debug_program'
51
- from tdebug.rb:247:in `<top (required)>'
52
- from ../rdbg.rb:23:in `load'
53
- from ../rdbg.rb:23:in `runner'
54
- from ../rdbg.rb:32:in `<main>'
55
- pm-catch2.rb:6
56
- raise ZeroDivisionError
57
- # jump 7
58
- pm-catch2.rb:7
59
- puts "bar end"
60
- # del 1
61
- # c
62
- bar end
63
- foo end
64
- 15
65
- done
data/test/data/catch3.cmd DELETED
@@ -1,11 +0,0 @@
1
- # ***************************************************
2
- # Test catch
3
- # ***************************************************
4
- set debuggertesting on
5
- set autoeval off
6
- set basename on
7
- c
8
- w
9
- p $var
10
- jump +4
11
- c
@@ -1,37 +0,0 @@
1
- pm-catch3.rb:3
2
- def get_exception(arg)
3
- # # ***************************************************
4
- # # Test catch
5
- # # ***************************************************
6
- # set debuggertesting on
7
- Currently testing the debugger is on.
8
- # set autoeval off
9
- autoeval is off.
10
- # set basename on
11
- basename is on.
12
- # c
13
- divide by zero
14
- start1:foo begin:bar begin:foo ensure:zero_div rescue:
15
- Catchpoint at pm-catch3.rb:15: `divided by 0' (ZeroDivisionError)
16
- from tdebug.rb:61:in `debug_program'
17
- from tdebug.rb:247:in `<top (required)>'
18
- from ../rdbg.rb:23:in `load'
19
- from ../rdbg.rb:23:in `runner'
20
- from ../rdbg.rb:32:in `<main>'
21
- pm-catch3.rb:15
22
- 1/0 if arg
23
- # w
24
- --> #0 Object.bar(arg#Fixnum) at line pm-catch3.rb:15
25
- #1 at line pm-catch3.rb:34
26
- #2 Object.foo(arg#Fixnum) at line pm-catch3.rb:24
27
- #3 Object.zero_div(arg#Fixnum) at line pm-catch3.rb:34
28
- #4 at line pm-catch3.rb:45
29
- # p $var
30
- "start2:foo begin:bar begin:"
31
- # jump +4
32
- pm-catch3.rb:19
33
- $var = $var + "bar end:"
34
- # c
35
- 7
36
- start2:foo begin:bar begin:bar end:foo end:foo ensure:
37
- done
@@ -1,28 +0,0 @@
1
- # ********************************************************
2
- # This tests primarily the condition command.
3
- # In order to do this we need to run break, and disable
4
- # ********************************************************
5
- set debuggertesting on
6
- set callstyle last
7
- set autoeval off
8
- break 6 if a > b
9
- info break
10
- condition 1
11
- info break
12
- break 12
13
- condition 2 1 == a
14
- # FIXME: should be able to catch error on:
15
- # condition 2 if 1 == a
16
- disable 1
17
- continue
18
- info break
19
- p a
20
- # Now test trying to enable an invalid breakpoint
21
- break 6 if a >
22
- info break
23
- enable 3
24
- info break
25
- condition 3 a > 5
26
- enable 3
27
- info break
28
- quit
@@ -1,65 +0,0 @@
1
- gcd.rb:4
2
- def gcd(a, b)
3
- # # ********************************************************
4
- # # This tests primarily the condition command.
5
- # # In order to do this we need to run break, and disable
6
- # # ********************************************************
7
- # set debuggertesting on
8
- Currently testing the debugger is on.
9
- # set callstyle last
10
- Frame call-display style is last.
11
- # set autoeval off
12
- autoeval is off.
13
- # break 6 if a > b
14
- Breakpoint 1 file ./gcd.rb, line 6
15
- # info break
16
- Num Enb What
17
- 1 y at ./gcd.rb:6 if a > b
18
- # condition 1
19
- # info break
20
- Num Enb What
21
- 1 y at ./gcd.rb:6
22
- # break 12
23
- Breakpoint 2 file ./gcd.rb, line 12
24
- # condition 2 1 == a
25
- # # FIXME: should be able to catch error on:
26
- # # condition 2 if 1 == a
27
- # disable 1
28
- # continue
29
- Breakpoint 2 at gcd.rb:12
30
- gcd.rb:12
31
- if a == 1 or b-a == 0
32
- # info break
33
- Num Enb What
34
- 1 n at ./gcd.rb:6
35
- 2 y at ./gcd.rb:12 if 1 == a
36
- breakpoint already hit 1 time
37
- # p a
38
- 1
39
- # # Now test trying to enable an invalid breakpoint
40
- # break 6 if a >
41
- Breakpoint 3 file ./gcd.rb, line 6
42
- *** Expression "a > " syntactically incorrect; breakpoint disabled.
43
- # info break
44
- Num Enb What
45
- 1 n at ./gcd.rb:6
46
- 2 y at ./gcd.rb:12 if 1 == a
47
- breakpoint already hit 1 time
48
- 3 n at ./gcd.rb:6 if a >
49
- # enable 3
50
- *** Expression "a > " syntactically incorrect; breakpoint remains disabled.
51
- # info break
52
- Num Enb What
53
- 1 n at ./gcd.rb:6
54
- 2 y at ./gcd.rb:12 if 1 == a
55
- breakpoint already hit 1 time
56
- 3 n at ./gcd.rb:6 if a >
57
- # condition 3 a > 5
58
- # enable 3
59
- # info break
60
- Num Enb What
61
- 1 n at ./gcd.rb:6
62
- 2 y at ./gcd.rb:12 if 1 == a
63
- breakpoint already hit 1 time
64
- 3 y at ./gcd.rb:6 if a > 5
65
- # quit
data/test/data/ctrl.cmd DELETED
@@ -1,23 +0,0 @@
1
- set debuggertesting on
2
- set width 80
3
- help
4
- help info
5
- info args
6
- info breakpoints
7
- info display
8
- info program
9
- info global_variables
10
- info line
11
- info locals
12
- info stack
13
- info threads
14
- info variables
15
- eval 1+2
16
- help show
17
- set trace off
18
- show trace
19
- set trace on
20
- set annotate 0
21
- show annotate
22
-
23
-
data/test/data/ctrl.right DELETED
@@ -1,70 +0,0 @@
1
- Currently testing the debugger is on.
2
- width is 80.
3
- Type 'help <command-name>' for help on a specific command
4
-
5
- Available commands:
6
- break edit help jump pp quit save skip
7
- catch eval info kill ps reload set source
8
- delete exit interrupt p putl restart show thread
9
-
10
- Generic command for showing things about the program being debugged.
11
- --
12
- List of info subcommands:
13
- --
14
- info args -- Argument variables of current stack frame
15
- info breakpoints -- Status of user-settable breakpoints
16
- info catch -- Exceptions that can be caught in the current stack frame
17
- info display -- Expressions to display when program stops
18
- info file -- Info about a particular file read in
19
- info files -- File names and timestamps of files read in
20
- info global_variables -- Global variables
21
- info instance_variables -- Instance variables of the current stack frame
22
- info line -- Line number and file name of current position in source file
23
- info locals -- Local variables of the current stack frame
24
- info program -- Execution status of the program
25
- info stack -- Backtrace of the stack
26
- info thread -- List info about thread NUM
27
- info threads -- information of currently-known threads
28
- info variables -- Local and instance variables of the current stack frame
29
- No frame selected.
30
- info breakpoints not available here.
31
- info display not available here.
32
- The program being debugged is not being run.
33
- info global_variables not available here.
34
- info line not available here.
35
- info line not available here.
36
- info stack not available here.
37
- info threads not available here.
38
- info variables not available here.
39
- 3
40
- Generic command for showing things about the debugger.
41
-
42
- --
43
- List of show subcommands:
44
- --
45
- show annotate -- Show annotation level
46
- show args -- Show argument list to give program being debugged when it is started
47
- show autoeval -- Show if unrecognized command are evaluated
48
- show autolist -- Show if 'list' commands is run on breakpoints
49
- show autoirb -- Show if IRB is invoked on debugger stops
50
- show autoreload -- Show if source code is reloaded when changed
51
- show basename -- Show if basename used in reporting files
52
- show callstyle -- Show paramater style used showing call frames
53
- show commands -- Show the history of commands you typed
54
- show forcestep -- Show if sure 'next/step' forces move to a new line
55
- show fullpath -- Show if full file names are displayed in frames
56
- show history -- Generic command for showing command history parameters
57
- show keep-frame-bindings -- Save frame binding on each call
58
- show linetrace -- Show line execution tracing
59
- show linetrace+ -- Show if consecutive lines should be different are shown in tracing
60
- show listsize -- Show number of source lines to list by default
61
- show port -- Show server port
62
- show post-mortem -- Show whether we go into post-mortem debugging on an uncaught exception
63
- show trace -- Show if a stack trace is displayed when 'eval' raises exception
64
- show version -- Show what version of the debugger this is
65
- show width -- Show the number of characters the debugger thinks are in a line
66
- Displaying stack trace is off.
67
- Displaying stack trace is off.
68
- Displaying stack trace is on.
69
- Annotation level is 0
70
- Annotation level is 0
@@ -1,24 +0,0 @@
1
- # ***************************************************
2
- # This tests display expressions.
3
- # ***************************************************
4
- set debuggertesting on
5
- b 6
6
- c
7
- # Should be no display expression yet.
8
- info display
9
- display a
10
- display b
11
- disable display b
12
- disable display 1
13
- c
14
- enable display b
15
- enable display 1
16
- undisplay a
17
- undisplay 2
18
- # Should have only one display expression.
19
- info display
20
- undisplay 1
21
- # Now we have no more display expressions.
22
- info display
23
- q
24
-
@@ -1,44 +0,0 @@
1
- gcd.rb:4
2
- def gcd(a, b)
3
- # # ***************************************************
4
- # # This tests display expressions.
5
- # # ***************************************************
6
- # set debuggertesting on
7
- Currently testing the debugger is on.
8
- # b 6
9
- Breakpoint 1 file ./gcd.rb, line 6
10
- # c
11
- Breakpoint 1 at gcd.rb:6
12
- gcd.rb:6
13
- if a > b
14
- # # Should be no display expression yet.
15
- # info display
16
- There are no auto-display expressions now.
17
- # display a
18
- 1: a = 3
19
- # display b
20
- 2: b = 5
21
- # disable display b
22
- Disable display argument 'b' needs to be a number.
23
- # disable display 1
24
- # c
25
- Breakpoint 1 at gcd.rb:6
26
- 2: b = 3
27
- gcd.rb:6
28
- if a > b
29
- # enable display b
30
- Enable display argument 'b' needs to be a number.
31
- # enable display 1
32
- # undisplay a
33
- Undisplay argument 'a' needs to be a number.
34
- # undisplay 2
35
- # # Should have only one display expression.
36
- # info display
37
- Auto-display expressions now in effect:
38
- Num Enb Expression
39
- 1: y a
40
- # undisplay 1
41
- # # Now we have no more display expressions.
42
- # info display
43
- There are no auto-display expressions now.
44
- # q
@@ -1,2 +0,0 @@
1
- ./dollar-0.rb
2
- ./dollar-0.rb
@@ -1,2 +0,0 @@
1
- ./dollar-0.rb
2
- ./dollar-0.rb
@@ -1,2 +0,0 @@
1
- ../test/dollar-0.rb
2
- ../test/dollar-0.rb
data/test/data/edit.cmd DELETED
@@ -1,12 +0,0 @@
1
- # ********************************************************
2
- # This tests the edit command
3
- # ********************************************************
4
- set debuggertesting on
5
- # Edit using current line position.
6
- edit
7
- edit gcd.rb:5
8
- # File should not exist
9
- edit foo
10
- # Add space to the end of 'edit'
11
- edit
12
- quit
data/test/data/edit.right DELETED
@@ -1,19 +0,0 @@
1
- gcd.rb:4
2
- def gcd(a, b)
3
- # # ********************************************************
4
- # # This tests the edit command
5
- # # ********************************************************
6
- # set debuggertesting on
7
- Currently testing the debugger is on.
8
- # # Edit using current line position.
9
- # edit
10
- FAKE-EDITOR +4 ./gcd.rb
11
- # edit gcd.rb:5
12
- FAKE-EDITOR +5 gcd.rb
13
- # # File should not exist
14
- # edit foo
15
- *** Invalid file/line number specification: foo
16
- # # Add space to the end of 'edit'
17
- # edit
18
- FAKE-EDITOR +4 ./gcd.rb
19
- # quit