ruby-debug-base19 0.11.24 → 0.11.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,14 @@ hdrs = proc {
12
12
  have_header("insns_info.inc") and have_header("eval_intern.h")
13
13
  }
14
14
 
15
+ if RUBY_VERSION == '1.9.1'
16
+ $CFLAGS << ' -DRUBY_VERSION_1_9_1'
17
+ end
18
+
19
+ if RUBY_REVISION >= 26959 # rb_iseq_compile_with_option was added an argument filepath
20
+ $CFLAGS << ' -DRB_ISEQ_COMPILE_6ARGS'
21
+ end
22
+
15
23
  dir_config("ruby")
16
24
  if !Ruby_core_source::create_makefile_with_core(hdrs, "ruby_debug")
17
25
  STDERR.print("Makefile creation failed\n")
@@ -21,7 +21,13 @@
21
21
  #define STACK_SIZE_INCREMENT 128
22
22
 
23
23
  RUBY_EXTERN int rb_vm_get_sourceline(const rb_control_frame_t *cfp); /* from vm.c */
24
- RUBY_EXTERN VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt); /* from iseq.c */
24
+
25
+ /* from iseq.c */
26
+ #ifdef RB_ISEQ_COMPILE_6ARGS
27
+ RUBY_EXTERN VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE filepath, VALUE line, VALUE opt);
28
+ #else
29
+ RUBY_EXTERN VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt);
30
+ #endif
25
31
 
26
32
  typedef struct {
27
33
  st_table *tbl;
@@ -679,8 +685,13 @@ create_catch_table(debug_context_t *debug_context, unsigned long cont)
679
685
  GET_THREAD()->parse_in_eval++;
680
686
  GET_THREAD()->mild_compile_error++;
681
687
  /* compiling with option Qfalse (no options) prevents debug hook calls during this catch routine */
688
+ #ifdef RB_ISEQ_COMPILE_6ARGS
682
689
  catch_table->iseq = rb_iseq_compile_with_option(
683
- rb_str_new_cstr("begin\nend"), rb_str_new_cstr("(exception catcher)"), INT2FIX(1), Qfalse);
690
+ rb_str_new_cstr(""), rb_str_new_cstr("(exception catcher)"), Qnil, INT2FIX(1), Qfalse);
691
+ #else
692
+ catch_table->iseq = rb_iseq_compile_with_option(
693
+ rb_str_new_cstr(""), rb_str_new_cstr("(exception catcher)"), INT2FIX(1), Qfalse);
694
+ #endif
684
695
  GET_THREAD()->mild_compile_error--;
685
696
  GET_THREAD()->parse_in_eval--;
686
697
 
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-debug-base19
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 11
8
- - 24
9
- version: 0.11.24
4
+ prerelease:
5
+ version: 0.11.25
10
6
  platform: ruby
11
7
  authors:
12
8
  - Kent Sibilev
@@ -15,8 +11,7 @@ autorequire:
15
11
  bindir: bin
16
12
  cert_chain: []
17
13
 
18
- date: 2010-08-22 00:00:00 -07:00
19
- default_executable:
14
+ date: 2011-04-02 00:00:00 Z
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
22
17
  name: columnize
@@ -26,10 +21,6 @@ dependencies:
26
21
  requirements:
27
22
  - - ">="
28
23
  - !ruby/object:Gem::Version
29
- segments:
30
- - 0
31
- - 3
32
- - 1
33
24
  version: 0.3.1
34
25
  type: :runtime
35
26
  version_requirements: *id001
@@ -41,10 +32,6 @@ dependencies:
41
32
  requirements:
42
33
  - - ">="
43
34
  - !ruby/object:Gem::Version
44
- segments:
45
- - 0
46
- - 1
47
- - 4
48
35
  version: 0.1.4
49
36
  type: :runtime
50
37
  version_requirements: *id002
@@ -56,10 +43,6 @@ dependencies:
56
43
  requirements:
57
44
  - - ">="
58
45
  - !ruby/object:Gem::Version
59
- segments:
60
- - 0
61
- - 5
62
- - 11
63
46
  version: 0.5.11
64
47
  type: :runtime
65
48
  version_requirements: *id003
@@ -92,7 +75,6 @@ files:
92
75
  - test/base/base.rb
93
76
  - test/base/binding.rb
94
77
  - test/base/catchpoint.rb
95
- has_rdoc: true
96
78
  homepage: http://rubyforge.org/projects/ruby-debug19/
97
79
  licenses: []
98
80
 
@@ -106,23 +88,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
88
  requirements:
107
89
  - - ">="
108
90
  - !ruby/object:Gem::Version
109
- segments:
110
- - 1
111
- - 8
112
- - 2
113
91
  version: 1.8.2
114
92
  required_rubygems_version: !ruby/object:Gem::Requirement
115
93
  none: false
116
94
  requirements:
117
95
  - - ">="
118
96
  - !ruby/object:Gem::Version
119
- segments:
120
- - 0
121
97
  version: "0"
122
98
  requirements: []
123
99
 
124
100
  rubyforge_project: ruby-debug19
125
- rubygems_version: 1.3.7
101
+ rubygems_version: 1.7.1
126
102
  signing_key:
127
103
  specification_version: 3
128
104
  summary: Fast Ruby debugger - core component