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/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 delete eval help interrupt p ps quit restart set source
7
- catch edit exit info kill pp putl reload save show thread
8
-
9
- Generic command for showing things about the program being debugged.
10
- --
11
- List of info subcommands:
12
- --
13
- info args -- Argument variables of current stack frame
14
- info breakpoints -- Status of user-settable breakpoints
15
- info catch -- Exceptions that can be caught in the current stack frame
16
- info display -- Expressions to display when program stops
17
- info file -- Info about a particular file read in
18
- info files -- File names and timestamps of files read in
19
- info global_variables -- Global variables
20
- info instance_variables -- Instance variables of the current stack frame
21
- info line -- Line number and file name of current position in source file
22
- info locals -- Local variables of the current stack frame
23
- info program -- Execution status of the program
24
- info stack -- Backtrace of the stack
25
- info thread -- List info about thread NUM
26
- info threads -- information of currently-known threads
27
- info variables -- Local and instance variables of the current stack frame
28
- No frame selected.
29
- info breakpoints not available here.
30
- info display not available here.
31
- The program being debugged is not being run.
32
- info global_variables not available here.
33
- info line not available here.
34
- info line not available here.
35
- info stack not available here.
36
- info threads not available here.
37
- info variables not available here.
38
- 3
39
- Generic command for showing things about the debugger.
40
-
41
- --
42
- List of show subcommands:
43
- --
44
- show annotate -- Show annotation level
45
- show args -- Show argument list to give program being debugged when it is started
46
- show autoeval -- Show if unrecognized command are evaluated
47
- show autolist -- Show if 'list' commands is run on breakpoints
48
- show autoirb -- Show if IRB is invoked on debugger stops
49
- show autoreload -- Show if source code is reloaded when changed
50
- show basename -- Show if basename used in reporting files
51
- show callstyle -- Show paramater style used showing call frames
52
- show commands -- Show the history of commands you typed
53
- show different -- Show if 'next/step' forces move to a new line
54
- show forcestep -- Deprecated. Please use 'different'
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,3 +0,0 @@
1
- ./example/dollar-0.rb
2
- ./example/dollar-0.rb
3
- ./example/dollar-0.rb
@@ -1,3 +0,0 @@
1
- ./dollar-0.rb
2
- ./dollar-0.rb
3
- ./dollar-0.rb
@@ -1,3 +0,0 @@
1
- ../test/dollar-0.rb
2
- ../test/dollar-0.rb
3
- ../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 example/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 ./example/gcd.rb
11
- # edit example/gcd.rb:5
12
- FAKE-EDITOR +5 example/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 ./example/gcd.rb
19
- # quit
@@ -1,10 +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
- list
10
- quit
@@ -1,24 +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
- # list
15
- [-1, 8] in gcd.rb
16
- 1 #!/usr/bin/env ruby
17
- 2
18
- 3 # GCD. We assume positive numbers
19
- => 4 def gcd(a, b)
20
- 5 # Make: a <= b
21
- 6 if a > b
22
- 7 a, b = [b, a]
23
- 8 end
24
- # 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
-
@@ -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
@@ -1,7 +0,0 @@
1
- # ********************************************************
2
- # This tests a bug in showing variables in post-mortem.
3
- # ********************************************************
4
- set debuggertesting on
5
- continue
6
- p n
7
- quit
@@ -1,13 +0,0 @@
1
- except-bug1.rb:1
2
- def foo(n)
3
- # # ********************************************************
4
- # # This tests a bug in showing variables in post-mortem.
5
- # # ********************************************************
6
- # set debuggertesting on
7
- Currently testing the debugger is on.
8
- # continue
9
- except-bug1.rb:2
10
- 1/0
11
- # p n
12
- 5
13
- # quit
@@ -1,7 +0,0 @@
1
- # *********************************************************
2
- # This is run on a file with an embedded space in the name
3
- # ********************************************************
4
- set debuggertesting on
5
- step
6
- quit
7
-
@@ -1,9 +0,0 @@
1
- file with space.rb:1
2
- puts 'Ha!'
3
- # # *********************************************************
4
- # # This is run on a file with an embedded space in the name
5
- # # ********************************************************
6
- # set debuggertesting on
7
- Currently testing the debugger is on.
8
- # step
9
- Ha!
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
@@ -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.-(a#Fixnum, b#Fixnum) at line gcd.rb:15
29
- #2 Object.-(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,29 +0,0 @@
1
- # ***************************************************
2
- # This tests step, next, finish and continue
3
- # ***************************************************
4
- set debuggertesting on
5
- set callstyle last
6
- continue 6
7
- where
8
- up
9
- where
10
- down
11
- where
12
- frame
13
- where
14
- frame -1
15
- where
16
- up 2
17
- where
18
- down 2
19
- where
20
- frame 0 thread 3
21
- frame 0 thread 1
22
- # finish
23
- # See that we don't match more than 'down' or 'up' when used as a variable.
24
- set autoeval on
25
- download = 1
26
- download
27
- upload = 'hey'
28
- upload
29
- quit
@@ -1,62 +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
- # continue 6
11
- gcd.rb:6
12
- if a > b
13
- # where
14
- --> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
15
- #1 at line gcd.rb:18
16
- # up
17
- #1 at line gcd.rb:18
18
- # where
19
- #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
20
- --> #1 at line gcd.rb:18
21
- # down
22
- #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
23
- # where
24
- --> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
25
- #1 at line gcd.rb:18
26
- # frame
27
- #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
28
- # where
29
- --> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
30
- #1 at line gcd.rb:18
31
- # frame -1
32
- #1 at line gcd.rb:18
33
- # where
34
- #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
35
- --> #1 at line gcd.rb:18
36
- # up 2
37
- *** Adjusting would put us beyond the oldest (initial) frame.
38
- # where
39
- #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
40
- --> #1 at line gcd.rb:18
41
- # down 2
42
- *** Adjusting would put us beyond the newest (innermost) frame.
43
- # where
44
- #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
45
- --> #1 at line gcd.rb:18
46
- # frame 0 thread 3
47
- *** Thread 3 doesn't exist.
48
- # frame 0 thread 1
49
- #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
50
- # # finish
51
- # # See that we don't match more than 'down' or 'up' when used as a variable.
52
- # set autoeval on
53
- autoeval is on.
54
- # download = 1
55
- 1
56
- # download
57
- 1
58
- # upload = 'hey'
59
- "hey"
60
- # upload
61
- "hey"
62
- # quit