readapt 0.8.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +16 -14
- data/.rspec +2 -2
- data/.travis.yml +18 -13
- data/CHANGELOG.md +80 -60
- data/Gemfile +4 -4
- data/LICENSE.txt +21 -21
- data/README.md +37 -29
- data/Rakefile +14 -14
- data/bin/console +14 -14
- data/bin/setup +8 -8
- data/exe/readapt +5 -5
- data/ext/readapt/breakpoints.c +83 -83
- data/ext/readapt/breakpoints.h +11 -11
- data/ext/readapt/extconf.rb +0 -0
- data/ext/readapt/frame.c +137 -137
- data/ext/readapt/frame.h +17 -17
- data/ext/readapt/inspector.c +51 -51
- data/ext/readapt/inspector.h +8 -8
- data/ext/readapt/{hash_table.c → lookup_table.c} +211 -211
- data/ext/readapt/lookup_table.h +30 -0
- data/ext/readapt/monitor.c +42 -5
- data/ext/readapt/monitor.h +0 -0
- data/ext/readapt/normalize.c +59 -59
- data/ext/readapt/normalize.h +7 -7
- data/ext/readapt/readapt.c +18 -18
- data/ext/readapt/stack.c +86 -86
- data/ext/readapt/stack.h +20 -20
- data/ext/readapt/threads.c +15 -11
- data/ext/readapt/threads.h +2 -2
- data/lib/readapt.rb +21 -18
- data/lib/readapt/adapter.rb +98 -138
- data/lib/readapt/breakpoint.rb +21 -20
- data/lib/readapt/data_reader.rb +62 -0
- data/lib/readapt/debugger.rb +220 -224
- data/lib/readapt/error.rb +63 -0
- data/lib/readapt/finder.rb +34 -20
- data/lib/readapt/frame.rb +40 -40
- data/lib/readapt/input.rb +7 -0
- data/lib/readapt/message.rb +62 -62
- data/lib/readapt/message/attach.rb +11 -11
- data/lib/readapt/message/base.rb +32 -32
- data/lib/readapt/message/configuration_done.rb +11 -11
- data/lib/readapt/message/continue.rb +15 -15
- data/lib/readapt/message/disconnect.rb +13 -14
- data/lib/readapt/message/evaluate.rb +18 -18
- data/lib/readapt/message/initialize.rb +13 -13
- data/lib/readapt/message/launch.rb +11 -11
- data/lib/readapt/message/next.rb +12 -12
- data/lib/readapt/message/pause.rb +11 -11
- data/lib/readapt/message/scopes.rb +26 -26
- data/lib/readapt/message/set_breakpoints.rb +25 -25
- data/lib/readapt/message/set_exception_breakpoints.rb +8 -8
- data/lib/readapt/message/stack_trace.rb +38 -38
- data/lib/readapt/message/step_in.rb +11 -11
- data/lib/readapt/message/step_out.rb +11 -11
- data/lib/readapt/message/threads.rb +18 -18
- data/lib/readapt/message/variables.rb +61 -61
- data/lib/readapt/monitor.rb +0 -0
- data/lib/readapt/output.rb +25 -0
- data/lib/readapt/references.rb +27 -0
- data/lib/readapt/server.rb +22 -0
- data/lib/readapt/shell.rb +104 -41
- data/lib/readapt/snapshot.rb +0 -0
- data/lib/readapt/thread.rb +25 -28
- data/lib/readapt/variable.rb +1 -1
- data/lib/readapt/version.rb +3 -3
- data/readapt.gemspec +39 -39
- metadata +15 -9
- data/ext/readapt/hash_table.h +0 -30
data/lib/readapt/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module Readapt
|
2
|
-
VERSION = "
|
3
|
-
end
|
1
|
+
module Readapt
|
2
|
+
VERSION = "1.2.0"
|
3
|
+
end
|
data/readapt.gemspec
CHANGED
@@ -1,39 +1,39 @@
|
|
1
|
-
lib = File.expand_path("lib", __dir__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require "readapt/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "readapt"
|
7
|
-
spec.version = Readapt::VERSION
|
8
|
-
spec.authors = ["Fred Snyder"]
|
9
|
-
spec.email = ["fsnyder@castwide.com"]
|
10
|
-
|
11
|
-
spec.summary = 'A Ruby debugger for the Debug Adapter Protocol'
|
12
|
-
spec.description = 'Readapt is a Ruby debugger that natively supports the Debug Adapter Protocol. Features include next/step in/step out, local and global variable data, and individual thread control.'
|
13
|
-
spec.homepage = "https://castwide.com"
|
14
|
-
spec.license = "MIT"
|
15
|
-
|
16
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
17
|
-
spec.metadata["source_code_uri"] = "https://github.com/castwide/readapt"
|
18
|
-
spec.metadata["changelog_uri"] = "https://github.com/castwide/readapt/blob/master/CHANGELOG.md"
|
19
|
-
|
20
|
-
# Specify which files should be added to the gem when it is released.
|
21
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
22
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
23
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
|
-
end
|
25
|
-
spec.bindir = "exe"
|
26
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
|
-
spec.require_paths = ["lib"]
|
28
|
-
spec.extensions = ['ext/readapt/extconf.rb']
|
29
|
-
|
30
|
-
spec.required_ruby_version = '>= 2.2'
|
31
|
-
|
32
|
-
spec.add_dependency 'backport', '~> 1.1'
|
33
|
-
spec.add_dependency 'thor', '~> 0
|
34
|
-
|
35
|
-
spec.add_development_dependency "rake", "~>
|
36
|
-
spec.add_development_dependency "rake-compiler", "~> 1.0"
|
37
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
38
|
-
spec.add_development_dependency 'simplecov', '~> 0.14'
|
39
|
-
end
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "readapt/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "readapt"
|
7
|
+
spec.version = Readapt::VERSION
|
8
|
+
spec.authors = ["Fred Snyder"]
|
9
|
+
spec.email = ["fsnyder@castwide.com"]
|
10
|
+
|
11
|
+
spec.summary = 'A Ruby debugger for the Debug Adapter Protocol'
|
12
|
+
spec.description = 'Readapt is a Ruby debugger that natively supports the Debug Adapter Protocol. Features include next/step in/step out, local and global variable data, and individual thread control.'
|
13
|
+
spec.homepage = "https://castwide.com"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
17
|
+
spec.metadata["source_code_uri"] = "https://github.com/castwide/readapt"
|
18
|
+
spec.metadata["changelog_uri"] = "https://github.com/castwide/readapt/blob/master/CHANGELOG.md"
|
19
|
+
|
20
|
+
# Specify which files should be added to the gem when it is released.
|
21
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
22
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
23
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
|
+
end
|
25
|
+
spec.bindir = "exe"
|
26
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
|
+
spec.require_paths = ["lib"]
|
28
|
+
spec.extensions = ['ext/readapt/extconf.rb']
|
29
|
+
|
30
|
+
spec.required_ruby_version = '>= 2.2'
|
31
|
+
|
32
|
+
spec.add_dependency 'backport', '~> 1.1'
|
33
|
+
spec.add_dependency 'thor', '~> 1.0'
|
34
|
+
|
35
|
+
spec.add_development_dependency "rake", "~> 12.3"
|
36
|
+
spec.add_development_dependency "rake-compiler", "~> 1.0"
|
37
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
38
|
+
spec.add_development_dependency 'simplecov', '~> 0.14'
|
39
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: readapt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fred Snyder
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backport
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0
|
33
|
+
version: '1.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '12.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '12.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake-compiler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,10 +121,10 @@ files:
|
|
121
121
|
- ext/readapt/extconf.rb
|
122
122
|
- ext/readapt/frame.c
|
123
123
|
- ext/readapt/frame.h
|
124
|
-
- ext/readapt/hash_table.c
|
125
|
-
- ext/readapt/hash_table.h
|
126
124
|
- ext/readapt/inspector.c
|
127
125
|
- ext/readapt/inspector.h
|
126
|
+
- ext/readapt/lookup_table.c
|
127
|
+
- ext/readapt/lookup_table.h
|
128
128
|
- ext/readapt/monitor.c
|
129
129
|
- ext/readapt/monitor.h
|
130
130
|
- ext/readapt/normalize.c
|
@@ -137,9 +137,12 @@ files:
|
|
137
137
|
- lib/readapt.rb
|
138
138
|
- lib/readapt/adapter.rb
|
139
139
|
- lib/readapt/breakpoint.rb
|
140
|
+
- lib/readapt/data_reader.rb
|
140
141
|
- lib/readapt/debugger.rb
|
142
|
+
- lib/readapt/error.rb
|
141
143
|
- lib/readapt/finder.rb
|
142
144
|
- lib/readapt/frame.rb
|
145
|
+
- lib/readapt/input.rb
|
143
146
|
- lib/readapt/message.rb
|
144
147
|
- lib/readapt/message/attach.rb
|
145
148
|
- lib/readapt/message/base.rb
|
@@ -160,6 +163,9 @@ files:
|
|
160
163
|
- lib/readapt/message/threads.rb
|
161
164
|
- lib/readapt/message/variables.rb
|
162
165
|
- lib/readapt/monitor.rb
|
166
|
+
- lib/readapt/output.rb
|
167
|
+
- lib/readapt/references.rb
|
168
|
+
- lib/readapt/server.rb
|
163
169
|
- lib/readapt/shell.rb
|
164
170
|
- lib/readapt/snapshot.rb
|
165
171
|
- lib/readapt/thread.rb
|
@@ -188,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
194
|
- !ruby/object:Gem::Version
|
189
195
|
version: '0'
|
190
196
|
requirements: []
|
191
|
-
rubygems_version: 3.0
|
197
|
+
rubygems_version: 3.2.0
|
192
198
|
signing_key:
|
193
199
|
specification_version: 4
|
194
200
|
summary: A Ruby debugger for the Debug Adapter Protocol
|
data/ext/readapt/hash_table.h
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
#ifndef HASH_TABLE_H_
|
2
|
-
#define HASH_TABLE_H_
|
3
|
-
|
4
|
-
typedef struct ht_long_array
|
5
|
-
{
|
6
|
-
long *items;
|
7
|
-
long size;
|
8
|
-
} ht_long_array;
|
9
|
-
|
10
|
-
// ht_item is an item in the hash table
|
11
|
-
typedef struct ht_item
|
12
|
-
{
|
13
|
-
char *key;
|
14
|
-
ht_long_array *value;
|
15
|
-
} ht_item;
|
16
|
-
|
17
|
-
typedef struct ht_hash_table
|
18
|
-
{
|
19
|
-
long size;
|
20
|
-
ht_item **items;
|
21
|
-
} ht_hash_table;
|
22
|
-
|
23
|
-
ht_hash_table *ht_new();
|
24
|
-
void ht_del_hash_table(ht_hash_table *ht);
|
25
|
-
|
26
|
-
void ht_insert(ht_hash_table *ht, char *key, const long *value, const long size);
|
27
|
-
ht_long_array *ht_search(ht_hash_table *ht, char *key);
|
28
|
-
void ht_delete(ht_hash_table *h, char *key);
|
29
|
-
|
30
|
-
#endif // HASH_TABLE_H_
|