ruby-debug-base 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGES +6 -0
  2. data/ext/ruby_debug.c +10 -14
  3. data/lib/ruby-debug-base.rb +1 -0
  4. metadata +2 -2
data/CHANGES CHANGED
@@ -1,3 +1,9 @@
1
+ 0.9.3
2
+ - Fixed if..elsif..end stepping.
3
+ - From irb session Ctrl-C or 'cont' command continues execution without showing the debugger prompt.
4
+ - Added Debugger.settings method to programatically modify command settings.
5
+ - Added Kernel#breakpoint as alias to Kernel#debugger is the former is not already defined.
6
+
1
7
  0.9.2
2
8
  - Fixed file comparison in Windows platform.
3
9
  - Added setter methods to Breakpoint properties
@@ -4,7 +4,7 @@
4
4
  #include <rubysig.h>
5
5
  #include <st.h>
6
6
 
7
- #define DEBUG_VERSION "0.9.2"
7
+ #define DEBUG_VERSION "0.9.3"
8
8
 
9
9
  #ifdef _WIN32
10
10
  struct FRAME {
@@ -75,14 +75,14 @@ typedef struct {
75
75
  short dead;
76
76
  VALUE self;
77
77
  union {
78
- struct {
79
- struct FRAME *frame;
80
- struct SCOPE *scope;
81
- struct RVarmap *dyna_vars;
82
- } runtime;
83
- struct {
84
- VALUE locals;
85
- } copy;
78
+ struct {
79
+ struct FRAME *frame;
80
+ struct SCOPE *scope;
81
+ struct RVarmap *dyna_vars;
82
+ } runtime;
83
+ struct {
84
+ VALUE locals;
85
+ } copy;
86
86
  } info;
87
87
  } debug_frame_t;
88
88
 
@@ -196,7 +196,7 @@ ruby_method_ptr(VALUE class, ID meth_id)
196
196
  {
197
197
  NODE *body, *method;
198
198
  st_lookup(RCLASS(class)->m_tbl, meth_id, (st_data_t *)&body);
199
- method = (NODE *)body->u2.value;
199
+ method = (NODE *)body->u2.value;
200
200
  return (void *)method->u1.value;
201
201
  }
202
202
 
@@ -932,10 +932,6 @@ debug_event_hook(rb_event_t event, NODE *node, VALUE self, ID mid, VALUE klass)
932
932
  else
933
933
  set_frame_source(event, debug_context, self, file, line, mid);
934
934
 
935
- /* avoid useless step on the beginning of 'if' statement */
936
- if(nd_type(node) == NODE_IF)
937
- break;
938
-
939
935
  if(RTEST(tracing) || CTX_FL_TEST(debug_context, CTX_FL_TRACING))
940
936
  rb_funcall(context, idAtTracing, 2, rb_str_new2(file), INT2FIX(line));
941
937
 
@@ -184,6 +184,7 @@ module Kernel
184
184
  Debugger.start unless Debugger.started?
185
185
  Debugger.current_context.stop_next = steps
186
186
  end
187
+ alias breakpoint debugger unless respond_to?(:breakpoint)
187
188
 
188
189
  #
189
190
  # Returns a binding of n-th call frame
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: ruby-debug-base
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.9.2
7
- date: 2007-04-04 16:23:02 -04:00
6
+ version: 0.9.3
7
+ date: 2007-04-27 20:32:40 -04:00
8
8
  summary: Fast Ruby debugger
9
9
  require_paths:
10
10
  - lib