ruby-debug 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGES +10 -2
  2. data/Rakefile +1 -1
  3. data/ext/ruby_debug.c +1 -1
  4. data/lib/ruby-debug.rb +8 -1
  5. metadata +2 -2
data/CHANGES CHANGED
@@ -1,4 +1,12 @@
1
- 0.1 (2006-06-16)
1
+ 0.1.4 (2006-06-12)
2
+ - Remembers the previous command. Invoke it by typing a carriage return
3
+ at the command prompt.
4
+
5
+ 0.1.3 (2006-06-11)
6
+ - Conditional breakpoints
7
+ - Bugfixes
8
+
9
+ 0.1.2 (2006-06-16)
2
10
  ========================
3
11
 
4
- Initial release.
12
+ - Initial release.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake/rdoctask'
5
5
  SO_NAME = "ruby_debug.so"
6
6
 
7
7
  # ------- Default Package ----------
8
- RUBY_DEBUG_VERSION = "0.1.3"
8
+ RUBY_DEBUG_VERSION = "0.1.4"
9
9
 
10
10
  FILES = FileList[
11
11
  'Rakefile',
data/ext/ruby_debug.c CHANGED
@@ -4,7 +4,7 @@
4
4
  #include <rubysig.h>
5
5
  #include <st.h>
6
6
 
7
- #define DEBUG_VERSION "0.1.3"
7
+ #define DEBUG_VERSION "0.1.4"
8
8
 
9
9
  typedef struct {
10
10
  int thnum;
data/lib/ruby-debug.rb CHANGED
@@ -51,6 +51,8 @@ module Debugger
51
51
  @trace_proc = nil
52
52
 
53
53
  class Context
54
+ DEBUG_LAST_CMD = []
55
+
54
56
  private
55
57
 
56
58
  begin
@@ -110,7 +112,12 @@ module Debugger
110
112
  prompt = true
111
113
  while prompt and input = readline("(rdb:%d) " % Debugger.thnum, true)
112
114
  catch(:debug_error) do
113
- next if input == ''
115
+ if input == ""
116
+ next unless DEBUG_LAST_CMD[0]
117
+ input = DEBUG_LAST_CMD[0]
118
+ else
119
+ DEBUG_LAST_CMD[0] = input
120
+ end
114
121
 
115
122
  case input
116
123
  when /^\s*s(?:tep)?(?:\s+(\d+))?$/
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: ruby-debug
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.3
7
- date: 2006-07-11 21:22:00 -04:00
6
+ version: 0.1.4
7
+ date: 2006-07-12 20:47:26 -04:00
8
8
  summary: Fast Ruby debugger
9
9
  require_paths:
10
10
  - lib