ruby-debug-base 0.9.2-mswin32 → 0.9.3-mswin32

Sign up to get free protection for your applications and to get access to all the features.
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
Binary file
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.2
2
+ rubygems_version: 0.9.0
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-05 20:42:43 -04:00
6
+ version: 0.9.3
7
+ date: 2007-05-01 14:29:39 +02:00
8
8
  summary: Fast Ruby debugger
9
9
  require_paths:
10
10
  - lib
@@ -34,10 +34,9 @@ files:
34
34
  - CHANGES
35
35
  - AUTHORS
36
36
  - lib/ruby-debug-base.rb
37
+ - ext/win32
37
38
  - ext/extconf.rb
38
39
  - ext/ruby_debug.c
39
- - ext/tags
40
- - ext/win32
41
40
  - lib/ruby_debug.so
42
41
  test_files: []
43
42
 
data/ext/tags DELETED
@@ -1,118 +0,0 @@
1
- CTX_FL_SET ruby_debug.c /^#define CTX_FL_SET(c,f) do { (c)->flags |= (f); } /
2
- CTX_FL_TEST ruby_debug.c /^#define CTX_FL_TEST(c,f) ((c)->flags & (f))$/
3
- CTX_FL_UNSET ruby_debug.c /^#define CTX_FL_UNSET(c,f) do { (c)->flags &= ~(f);/
4
- FRAME ruby_debug.c /^struct FRAME {$/
5
- FRAME_N ruby_debug.c /^#define FRAME_N(n) (&debug_context->frames[debug_/
6
- Init_breakpoint ruby_debug.c /^Init_breakpoint()$/
7
- Init_context ruby_debug.c /^Init_context()$/
8
- Init_ruby_debug ruby_debug.c /^Init_ruby_debug()$/
9
- RVarmap ruby_debug.c /^struct RVarmap {$/
10
- SCOPE ruby_debug.c /^struct SCOPE {$/
11
- VALUE ruby_debug.c /^ typedef VALUE (*id2ref_func_t)(VALUE, VALUE);$/
12
- add_to_locked ruby_debug.c /^add_to_locked(VALUE thread)$/
13
- bp_type ruby_debug.c /^enum bp_type {BP_POS_TYPE, BP_METHOD_TYPE};$/
14
- breakpoint_expr ruby_debug.c /^breakpoint_expr(VALUE self)$/
15
- breakpoint_id ruby_debug.c /^breakpoint_id(VALUE self)$/
16
- breakpoint_mark ruby_debug.c /^breakpoint_mark(void *data)$/
17
- breakpoint_pos ruby_debug.c /^breakpoint_pos(VALUE self)$/
18
- breakpoint_source ruby_debug.c /^breakpoint_source(VALUE self)$/
19
- call_at_line ruby_debug.c /^call_at_line(VALUE context, debug_context_t *debug/
20
- call_at_line_unprotected ruby_debug.c /^call_at_line_unprotected(VALUE args)$/
21
- check_breakpoint_expression ruby_debug.c /^check_breakpoint_expression(VALUE breakpoint, VALU/
22
- check_breakpoints_by_method ruby_debug.c /^check_breakpoints_by_method(debug_context_t *debug/
23
- check_breakpoints_by_pos ruby_debug.c /^check_breakpoints_by_pos(debug_context_t *debug_co/
24
- check_frame_number ruby_debug.c /^check_frame_number(debug_context_t *debug_context,/
25
- check_thread_contexts ruby_debug.c /^check_thread_contexts()$/
26
- classname_cmp ruby_debug.c /^classname_cmp(VALUE name, VALUE klass)$/
27
- context_copy_locals ruby_debug.c /^context_copy_locals(debug_frame_t *debug_frame)$/
28
- context_dead ruby_debug.c /^context_dead(VALUE self)$/
29
- context_frame_binding ruby_debug.c /^context_frame_binding(VALUE self, VALUE frame)$/
30
- context_frame_file ruby_debug.c /^context_frame_file(VALUE self, VALUE frame)$/
31
- context_frame_id ruby_debug.c /^context_frame_id(VALUE self, VALUE frame)$/
32
- context_frame_line ruby_debug.c /^context_frame_line(VALUE self, VALUE frame)$/
33
- context_frame_locals ruby_debug.c /^context_frame_locals(VALUE self, VALUE frame)$/
34
- context_frame_self ruby_debug.c /^context_frame_self(VALUE self, VALUE frame)$/
35
- context_ignore ruby_debug.c /^context_ignore(VALUE self)$/
36
- context_is_suspended ruby_debug.c /^context_is_suspended(VALUE self)$/
37
- context_resume ruby_debug.c /^context_resume(VALUE self)$/
38
- context_resume_0 ruby_debug.c /^context_resume_0(debug_context_t *debug_context)$/
39
- context_set_tracing ruby_debug.c /^context_set_tracing(VALUE self, VALUE value)$/
40
- context_stack_size ruby_debug.c /^context_stack_size(VALUE self)$/
41
- context_step_over ruby_debug.c /^context_step_over(int argc, VALUE *argv, VALUE sel/
42
- context_stop_frame ruby_debug.c /^context_stop_frame(VALUE self, VALUE frame)$/
43
- context_stop_next ruby_debug.c /^context_stop_next(VALUE self, VALUE steps)$/
44
- context_suspend ruby_debug.c /^context_suspend(VALUE self)$/
45
- context_suspend_0 ruby_debug.c /^context_suspend_0(debug_context_t *debug_context)$/
46
- context_thnum ruby_debug.c /^context_thnum(VALUE self)$/
47
- context_thread ruby_debug.c /^context_thread(VALUE self)$/
48
- context_thread_0 ruby_debug.c /^context_thread_0(debug_context_t *debug_context)$/
49
- context_tracing ruby_debug.c /^context_tracing(VALUE self)$/
50
- create_binding ruby_debug.c /^create_binding(VALUE self)$/
51
- debug_add_breakpoint ruby_debug.c /^debug_add_breakpoint(int argc, VALUE *argv, VALUE /
52
- debug_at_exit ruby_debug.c /^debug_at_exit(VALUE self)$/
53
- debug_at_exit_c ruby_debug.c /^debug_at_exit_c(VALUE proc)$/
54
- debug_at_exit_i ruby_debug.c /^debug_at_exit_i(VALUE proc)$/
55
- debug_breakpoint_t ruby_debug.c /^} debug_breakpoint_t;$/
56
- debug_breakpoints ruby_debug.c /^debug_breakpoints(VALUE self)$/
57
- debug_catchpoint ruby_debug.c /^debug_catchpoint(VALUE self)$/
58
- debug_check_started ruby_debug.c /^debug_check_started()$/
59
- debug_context_create ruby_debug.c /^debug_context_create(VALUE thread)$/
60
- debug_context_dup ruby_debug.c /^debug_context_dup(debug_context_t *debug_context)$/
61
- debug_context_free ruby_debug.c /^debug_context_free(void *data)$/
62
- debug_context_mark ruby_debug.c /^debug_context_mark(void *data)$/
63
- debug_context_t ruby_debug.c /^} debug_context_t;$/
64
- debug_contexts ruby_debug.c /^debug_contexts(VALUE self)$/
65
- debug_current_context ruby_debug.c /^debug_current_context(VALUE self)$/
66
- debug_debug_load ruby_debug.c /^debug_debug_load(VALUE self, VALUE file)$/
67
- debug_event_hook ruby_debug.c /^debug_event_hook(rb_event_t event, NODE *node, VAL/
68
- debug_frame_t ruby_debug.c /^} debug_frame_t;$/
69
- debug_is_started ruby_debug.c /^debug_is_started(VALUE self)$/
70
- debug_keep_frame_binding ruby_debug.c /^debug_keep_frame_binding(VALUE self)$/
71
- debug_last_interrupted ruby_debug.c /^debug_last_interrupted(VALUE self)$/
72
- debug_post_mortem ruby_debug.c /^debug_post_mortem(VALUE self)$/
73
- debug_remove_breakpoint ruby_debug.c /^debug_remove_breakpoint(VALUE self, VALUE id_value/
74
- debug_resume ruby_debug.c /^debug_resume(VALUE self)$/
75
- debug_set_catchpoint ruby_debug.c /^debug_set_catchpoint(VALUE self, VALUE value)$/
76
- debug_set_keep_frame_binding ruby_debug.c /^debug_set_keep_frame_binding(VALUE self, VALUE val/
77
- debug_set_post_mortem ruby_debug.c /^debug_set_post_mortem(VALUE self, VALUE value)$/
78
- debug_set_tracing ruby_debug.c /^debug_set_tracing(VALUE self, VALUE value)$/
79
- debug_skip ruby_debug.c /^debug_skip(VALUE self)$/
80
- debug_start ruby_debug.c /^debug_start(VALUE self)$/
81
- debug_stop ruby_debug.c /^debug_stop(VALUE self)$/
82
- debug_stop_i ruby_debug.c /^debug_stop_i(VALUE self)$/
83
- debug_suspend ruby_debug.c /^debug_suspend(VALUE self)$/
84
- debug_thread_context ruby_debug.c /^debug_thread_context(VALUE self, VALUE thread)$/
85
- debug_thread_inherited ruby_debug.c /^debug_thread_inherited(VALUE klass)$/
86
- debug_tracing ruby_debug.c /^debug_tracing(VALUE self)$/
87
- eval_expression ruby_debug.c /^eval_expression(VALUE args)$/
88
- filename_cmp ruby_debug.c /^filename_cmp(VALUE source, char *file)$/
89
- find_last_context_func ruby_debug.c /^find_last_context_func(VALUE key, VALUE value, VAL/
90
- get_breakpoint_at ruby_debug.c /^get_breakpoint_at(int index) $/
91
- get_event_name ruby_debug.c /^get_event_name(rb_event_t event)$/
92
- get_top_frame ruby_debug.c /^get_top_frame(debug_context_t *debug_context)$/
93
- id2ref ruby_debug.c /^id2ref(VALUE id)$/
94
- id2ref_error ruby_debug.c /^id2ref_error()$/
95
- id2ref_unprotected ruby_debug.c /^id2ref_unprotected(VALUE id)$/
96
- is_in_locked ruby_debug.c /^is_in_locked(VALUE thread_id)$/
97
- is_thread_alive ruby_debug.c /^is_thread_alive(VALUE thread)$/
98
- isdirsep ruby_debug.c /^#define isdirsep(x) ((x) == '\/' || (x) == '\\\\')/
99
- locked_thread_t ruby_debug.c /^} locked_thread_t;$/
100
- min ruby_debug.c /^#define min(x,y) ((x) < (y) ? (x) : (y))$/
101
- ref2id ruby_debug.c /^ref2id(VALUE obj)$/
102
- remove_from_locked ruby_debug.c /^remove_from_locked()$/
103
- ruby_method_ptr ruby_debug.c /^ruby_method_ptr(VALUE class, ID meth_id)$/
104
- save_call_frame ruby_debug.c /^save_call_frame(VALUE self, char *file, int line, /
105
- save_current_position ruby_debug.c /^save_current_position(debug_context_t *debug_conte/
106
- save_top_binding ruby_debug.c /^save_top_binding(debug_context_t *debug_context, V/
107
- set_current_skipped_status ruby_debug.c /^set_current_skipped_status(VALUE status)$/
108
- set_dyna_vars ruby_debug.c /^set_dyna_vars(debug_context_t *debug_context)$/
109
- set_frame_source ruby_debug.c /^set_frame_source(debug_context_t *debug_context, c/
110
- thread_context_lookup ruby_debug.c /^thread_context_lookup(VALUE thread, VALUE *context/
111
- threads_table_check_i ruby_debug.c /^threads_table_check_i(VALUE key, VALUE value, VALU/
112
- threads_table_clear ruby_debug.c /^threads_table_clear(VALUE table)$/
113
- threads_table_clear_i ruby_debug.c /^threads_table_clear_i(VALUE key, VALUE value, VALU/
114
- threads_table_create ruby_debug.c /^threads_table_create()$/
115
- threads_table_free ruby_debug.c /^threads_table_free(void* data)$/
116
- threads_table_mark ruby_debug.c /^threads_table_mark(void* data)$/
117
- threads_table_mark_keyvalue ruby_debug.c /^threads_table_mark_keyvalue(VALUE key, VALUE value/
118
- threads_table_t ruby_debug.c /^} threads_table_t;$/