ruby-debug-base19x 0.11.29 → 0.11.30.pre

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -3,7 +3,6 @@
3
3
  require 'rubygems'
4
4
 
5
5
  require 'bundler/gem_tasks'
6
- require 'rake/rdoctask'
7
6
  require 'rake/testtask'
8
7
 
9
8
  BASE_TEST_FILE_LIST = Dir['test/**/*_test.rb']
@@ -1,11 +1,6 @@
1
1
  require "mkmf"
2
2
  require "ruby_core_source"
3
3
 
4
- if RUBY_VERSION < "1.9"
5
- STDERR.print("Ruby version is too old\n")
6
- exit(1)
7
- end
8
-
9
4
  hdrs = proc {
10
5
  have_struct_member("rb_method_entry_t", "body", "method.h")
11
6
  have_header("vm_core.h") and have_header("iseq.h") and have_header("insns.inc") and
@@ -16,8 +11,22 @@ if RUBY_VERSION == '1.9.1'
16
11
  $CFLAGS << ' -DRUBY_VERSION_1_9_1'
17
12
  end
18
13
 
14
+ if RUBY_REVISION >= 26959 # rb_iseq_compile_with_option was added an argument filepath
15
+ $CFLAGS << ' -DRB_ISEQ_COMPILE_6ARGS'
16
+ end
17
+
19
18
  dir_config("ruby")
20
- if !Ruby_core_source::create_makefile_with_core(hdrs, "ruby_debug")
19
+ name = "ruby_debug"
20
+ if (ENV['rvm_ruby_string'])
21
+ dest_dir = Config::CONFIG["rubyhdrdir"]
22
+ with_cppflags("-I" + dest_dir) {
23
+ if hdrs.call
24
+ create_makefile(name)
25
+ exit 0
26
+ end
27
+ }
28
+ end
29
+ if !Ruby_core_source::create_makefile_with_core(hdrs, name)
21
30
  STDERR.print("Makefile creation failed\n")
22
31
  STDERR.print("*************************************************************\n\n")
23
32
  STDERR.print(" NOTE: For Ruby 1.9 installation instructions, please see:\n\n")
@@ -9,7 +9,7 @@
9
9
  #include <insns_info.inc>
10
10
  #include "ruby_debug.h"
11
11
 
12
- #define DEBUG_VERSION "0.11.29"
12
+ #define DEBUG_VERSION "0.11.30.pre"
13
13
 
14
14
  #define FRAME_N(n) (&debug_context->frames[debug_context->stack_size-(n)-1])
15
15
  #define GET_FRAME (FRAME_N(check_frame_number(debug_context, frame)))
@@ -21,7 +21,12 @@
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
+ /* from iseq.c */
25
+ #ifdef RB_ISEQ_COMPILE_6ARGS
26
+ RUBY_EXTERN VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE filepath, VALUE line, VALUE opt);
27
+ #else
28
+ RUBY_EXTERN VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt);
29
+ #endif
25
30
 
26
31
  typedef struct {
27
32
  st_table *tbl;
@@ -680,8 +685,13 @@ create_catch_table(debug_context_t *debug_context, unsigned long cont)
680
685
  GET_THREAD()->parse_in_eval++;
681
686
  GET_THREAD()->mild_compile_error++;
682
687
  /* compiling with option Qfalse (no options) prevents debug hook calls during this catch routine */
688
+ #ifdef RB_ISEQ_COMPILE_6ARGS
689
+ catch_table->iseq = rb_iseq_compile_with_option(
690
+ rb_str_new_cstr("begin\nend"), rb_str_new_cstr("(exception catcher)"), Qnil, INT2FIX(1), Qfalse);
691
+ #else
683
692
  catch_table->iseq = rb_iseq_compile_with_option(
684
693
  rb_str_new_cstr("begin\nend"), rb_str_new_cstr("(exception catcher)"), INT2FIX(1), Qfalse);
694
+ #endif
685
695
  GET_THREAD()->mild_compile_error--;
686
696
  GET_THREAD()->parse_in_eval--;
687
697
 
metadata CHANGED
@@ -1,77 +1,78 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ruby-debug-base19x
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.11.29
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.11.30.pre
5
+ prerelease: 8
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Kent Sibilev, Mark Moseley
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-06-22 00:00:00 +04:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2011-08-10 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: columnize
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70174364715960 !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
24
21
  version: 0.3.1
25
22
  type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: ruby_core_source
29
23
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70174364715960
25
+ - !ruby/object:Gem::Dependency
26
+ name: ruby_core_source
27
+ requirement: &70174364715480 !ruby/object:Gem::Requirement
31
28
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
35
32
  version: 0.1.4
36
33
  type: :runtime
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: linecache19
40
34
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70174364715480
36
+ - !ruby/object:Gem::Dependency
37
+ name: linecache19
38
+ requirement: &70174364715000 !ruby/object:Gem::Requirement
42
39
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
46
43
  version: 0.5.11
47
44
  type: :runtime
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: rake
51
45
  prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70174364715000
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: &70174364714540 !ruby/object:Gem::Requirement
53
50
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
57
54
  version: 0.8.1
58
55
  type: :runtime
59
- version_requirements: *id004
60
- description: |
61
- ruby-debug is a fast implementation of the standard Ruby debugger debug.rb.
56
+ prerelease: false
57
+ version_requirements: *70174364714540
58
+ description: ! 'ruby-debug is a fast implementation of the standard Ruby debugger
59
+ debug.rb.
60
+
62
61
  It is implemented by utilizing a new Ruby C API hook. The core component
62
+
63
63
  provides support that front-ends can build on. It provides breakpoint
64
+
64
65
  handling, bindings for stack frames among other things.
65
66
 
67
+ '
66
68
  email: ksibilev@yahoo.com
67
69
  executables: []
68
-
69
- extensions:
70
+ extensions:
70
71
  - ext/ruby_debug/extconf.rb
71
- extra_rdoc_files:
72
+ extra_rdoc_files:
72
73
  - README
73
74
  - ext/ruby_debug/ruby_debug.c
74
- files:
75
+ files:
75
76
  - AUTHORS
76
77
  - CHANGES
77
78
  - LICENSE
@@ -83,33 +84,28 @@ files:
83
84
  - ext/ruby_debug/ruby_debug.h
84
85
  - lib/ChangeLog
85
86
  - lib/ruby-debug-base.rb
86
- has_rdoc: true
87
- homepage: https://github.com/denofevil/ruby-debug-base19
87
+ homepage: https://github.com/JetBrains/ruby-debug-base19
88
88
  licenses: []
89
-
90
89
  post_install_message:
91
90
  rdoc_options: []
92
-
93
- require_paths:
91
+ require_paths:
94
92
  - lib
95
- required_ruby_version: !ruby/object:Gem::Requirement
93
+ required_ruby_version: !ruby/object:Gem::Requirement
96
94
  none: false
97
- requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- version: 1.8.2
101
- required_rubygems_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '1.9'
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
100
  none: false
103
- requirements:
104
- - - ">="
105
- - !ruby/object:Gem::Version
106
- version: "0"
101
+ requirements:
102
+ - - ! '>'
103
+ - !ruby/object:Gem::Version
104
+ version: 1.3.1
107
105
  requirements: []
108
-
109
106
  rubyforge_project: ruby-debug19
110
- rubygems_version: 1.6.2
107
+ rubygems_version: 1.8.6
111
108
  signing_key:
112
109
  specification_version: 3
113
110
  summary: Fast Ruby debugger - core component
114
111
  test_files: []
115
-