ruby-debug-base 0.9.2 → 0.9.3
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.
- data/CHANGES +6 -0
- data/ext/ruby_debug.c +10 -14
- data/lib/ruby-debug-base.rb +1 -0
- 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
|
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.9.
|
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
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
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
|
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
|
|
data/lib/ruby-debug-base.rb
CHANGED
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.
|
7
|
-
date: 2007-04-
|
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
|