debase 0.2.7 → 0.2.9
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.
- checksums.yaml +4 -4
- data/debase.gemspec +1 -1
- data/ext/attach/extconf.rb +1 -1
- data/ext/debase_internals.c +9 -7
- data/ext/extconf.rb +21 -4
- data/lib/debase/version.rb +1 -1
- data/lib/debase.rb +0 -5
- metadata +5 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37307c10b1aa77ac103e46b1c4e3c3dbe38383e341d7ec85d42a5fc56be5e03b
|
4
|
+
data.tar.gz: e7ea722822a4d9b6dcd492b8ce813fce3613d07c2e2989336b2333031727e546
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ccd01f3270190de4854b3b111492448dff61cfb28b3568e739499c36202e64b5d84971d31f44c4d8fc77f3daa7896a877e2b934563709813e8876577fa5144f
|
7
|
+
data.tar.gz: b2c6715263f39778468728e0fd89686d8f63e54ef71b7bde10830ae4d360d810174cbd53a98ab6bccda33e8e427b009c10a8fe5c124774acf9e18c43c6280fb4
|
data/debase.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
|
27
27
|
s.required_ruby_version = ">= 2.0"
|
28
28
|
|
29
|
-
s.add_dependency "debase-ruby_core_source", ">= 3.
|
29
|
+
s.add_dependency "debase-ruby_core_source", ">= 3.4.1"
|
30
30
|
s.add_development_dependency "test-unit"
|
31
31
|
s.add_development_dependency "rake"
|
32
32
|
end
|
data/ext/attach/extconf.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
if defined?(RUBY_ENGINE) &&
|
1
|
+
if defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE
|
2
2
|
# create dummy Makefile to indicate success
|
3
3
|
f = File.open(File.join(File.dirname(__FILE__), "Makefile"), "w")
|
4
4
|
f.write("all:\n\techo all\ninstall:\n\techo installed\n")
|
data/ext/debase_internals.c
CHANGED
@@ -316,7 +316,7 @@ call_at_line(debug_context_t *context, char *file, int line, VALUE context_objec
|
|
316
316
|
int count_stack_size() {
|
317
317
|
rb_thread_t *thread = ruby_current_thread;
|
318
318
|
rb_control_frame_t *last_cfp = TH_CFP(thread);
|
319
|
-
const rb_control_frame_t *start_cfp = RUBY_VM_END_CONTROL_FRAME(TH_INFO(thread));
|
319
|
+
const rb_control_frame_t *start_cfp = (rb_control_frame_t *)RUBY_VM_END_CONTROL_FRAME(TH_INFO(thread));
|
320
320
|
const rb_control_frame_t *cfp;
|
321
321
|
|
322
322
|
ptrdiff_t size, i;
|
@@ -693,10 +693,10 @@ Debase_enable_file_filtering(VALUE self, VALUE value)
|
|
693
693
|
return iseq;
|
694
694
|
}
|
695
695
|
|
696
|
-
static
|
696
|
+
static VALUE
|
697
697
|
Debase_set_trace_flag_to_iseq(VALUE self, VALUE rb_iseq) {
|
698
698
|
if (!SPECIAL_CONST_P(rb_iseq) && RBASIC_CLASS(rb_iseq) == rb_cISeq) {
|
699
|
-
rb_iseq_t *iseq = my_iseqw_check(rb_iseq);
|
699
|
+
const rb_iseq_t *iseq = my_iseqw_check(rb_iseq);
|
700
700
|
|
701
701
|
if(iseq) {
|
702
702
|
rb_iseq_trace_set(iseq, RUBY_EVENT_TRACEPOINT_ALL);
|
@@ -704,10 +704,10 @@ Debase_enable_file_filtering(VALUE self, VALUE value)
|
|
704
704
|
}
|
705
705
|
}
|
706
706
|
|
707
|
-
static
|
707
|
+
static VALUE
|
708
708
|
Debase_unset_trace_flags(VALUE self, VALUE rb_iseq) {
|
709
709
|
if (!SPECIAL_CONST_P(rb_iseq) && RBASIC_CLASS(rb_iseq) == rb_cISeq) {
|
710
|
-
rb_iseq_t *iseq = my_iseqw_check(rb_iseq);
|
710
|
+
const rb_iseq_t *iseq = my_iseqw_check(rb_iseq);
|
711
711
|
|
712
712
|
if(iseq) {
|
713
713
|
rb_iseq_trace_set(iseq, RUBY_EVENT_NONE);
|
@@ -715,12 +715,14 @@ Debase_enable_file_filtering(VALUE self, VALUE value)
|
|
715
715
|
}
|
716
716
|
}
|
717
717
|
#else
|
718
|
-
static
|
718
|
+
static VALUE
|
719
719
|
Debase_set_trace_flag_to_iseq(VALUE self, VALUE rb_iseq) {
|
720
|
+
return Qnil;
|
720
721
|
}
|
721
722
|
|
722
|
-
static
|
723
|
+
static VALUE
|
723
724
|
Debase_unset_trace_flags(VALUE self, VALUE rb_iseq) {
|
725
|
+
return Qnil;
|
724
726
|
}
|
725
727
|
#endif
|
726
728
|
|
data/ext/extconf.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
if defined?(RUBY_ENGINE) &&
|
1
|
+
if defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE
|
2
2
|
# create dummy Makefile to indicate success
|
3
3
|
f = File.open(File.join(File.dirname(__FILE__), "Makefile"), "w")
|
4
4
|
f.write("all:\n\techo all\ninstall:\n\techo installed\n")
|
@@ -39,14 +39,31 @@ hdrs = proc {
|
|
39
39
|
# $CFLAGS='-fPIC -fno-strict-aliasing -g3 -ggdb -O2 -fPIC'
|
40
40
|
config_file = File.join(File.dirname(__FILE__), 'config_options.rb')
|
41
41
|
load config_file if File.exist?(config_file)
|
42
|
+
cflags = [$CFLAGS]
|
43
|
+
cflags.push(*%w[
|
44
|
+
-Werror=implicit-function-declaration
|
45
|
+
-Werror=discarded-qualifiers
|
46
|
+
-Werror=incompatible-pointer-types
|
47
|
+
])
|
48
|
+
|
49
|
+
if RbConfig::MAKEFILE_CONFIG['CC'].include?('clang')
|
50
|
+
cflags.push(*%w[
|
51
|
+
-Werror=incompatible-function-pointer-types
|
52
|
+
])
|
53
|
+
end
|
42
54
|
|
43
|
-
$CFLAGS += ' -Werror=implicit-function-declaration -Werror=discarded-qualifiers'
|
44
55
|
|
45
56
|
if ENV['debase_debug']
|
46
|
-
|
47
|
-
|
57
|
+
cflags.push(*%w[
|
58
|
+
-Wall
|
59
|
+
-Werror
|
60
|
+
-g3
|
61
|
+
])
|
48
62
|
end
|
49
63
|
|
64
|
+
$CFLAGS += ' ' + cflags.join(' ')
|
65
|
+
|
66
|
+
|
50
67
|
dir_config("ruby")
|
51
68
|
if !Debase::RubyCoreSource.create_makefile_with_core(hdrs, "debase_internals")
|
52
69
|
STDERR.print("Makefile creation failed\n")
|
data/lib/debase/version.rb
CHANGED
data/lib/debase.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: debase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandr Evstigneev
|
8
8
|
- Dennis Ushakov
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2025-02-03 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: debase-ruby_core_source
|
@@ -17,14 +16,14 @@ dependencies:
|
|
17
16
|
requirements:
|
18
17
|
- - ">="
|
19
18
|
- !ruby/object:Gem::Version
|
20
|
-
version: 3.
|
19
|
+
version: 3.4.1
|
21
20
|
type: :runtime
|
22
21
|
prerelease: false
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
24
|
- - ">="
|
26
25
|
- !ruby/object:Gem::Version
|
27
|
-
version: 3.
|
26
|
+
version: 3.4.1
|
28
27
|
- !ruby/object:Gem::Dependency
|
29
28
|
name: test-unit
|
30
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -124,7 +123,6 @@ homepage: https://github.com/ruby-debug/debase
|
|
124
123
|
licenses:
|
125
124
|
- MIT
|
126
125
|
metadata: {}
|
127
|
-
post_install_message:
|
128
126
|
rdoc_options: []
|
129
127
|
require_paths:
|
130
128
|
- lib
|
@@ -139,8 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
137
|
- !ruby/object:Gem::Version
|
140
138
|
version: '0'
|
141
139
|
requirements: []
|
142
|
-
rubygems_version: 3.3
|
143
|
-
signing_key:
|
140
|
+
rubygems_version: 3.6.3
|
144
141
|
specification_version: 4
|
145
142
|
summary: debase is a fast implementation of the standard Ruby debugger debug.rb for
|
146
143
|
Ruby 2.0+
|