debase 0.2.2.beta7 → 0.2.2.beta8
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/ext/debase_internals.c +7 -2
- data/lib/debase/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a1e87cdd51f0c7a810d7a2b756db948a0bd13e5
|
|
4
|
+
data.tar.gz: 12f174215bb14d1f654c056dc6aa1a47398ebac2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 543fbe0eaf3d28f83c5c253c29e882aa8c18ab69af027ad7b221bd256c0399db06a3479ee3dcee45f8faf18946b4dc73a86ec88bae59bfb1bef19451c507cdd6
|
|
7
|
+
data.tar.gz: 543fae8f7f04950feb679caa18593da3f4bc94470b71ad7afcba979e6bab2aa0fac1b85cd8fe8e34d51cf26d189da0bc22db0881eb720e9dea2242a7cf60c6ba
|
data/ext/debase_internals.c
CHANGED
|
@@ -35,6 +35,11 @@ print_debug(const char *message, ...)
|
|
|
35
35
|
va_end(ap);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
inline int
|
|
39
|
+
check_stop_frame(debug_context_t *context) {
|
|
40
|
+
return context->calced_stack_size == context->stop_frame && context->calced_stack_size >= 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
38
43
|
static VALUE
|
|
39
44
|
is_path_accepted(VALUE path) {
|
|
40
45
|
VALUE filter;
|
|
@@ -358,7 +363,7 @@ process_line_event(VALUE trace_point, void *data)
|
|
|
358
363
|
{
|
|
359
364
|
context->stop_next = 0;
|
|
360
365
|
}
|
|
361
|
-
if(context
|
|
366
|
+
if(check_stop_frame(context))
|
|
362
367
|
{
|
|
363
368
|
context->stop_next = 0;
|
|
364
369
|
context->stop_frame = -1;
|
|
@@ -394,7 +399,7 @@ process_return_event(VALUE trace_point, void *data)
|
|
|
394
399
|
/* it is important to check stop_frame after stack size updated
|
|
395
400
|
if the order will be changed change Context_stop_frame accordingly.
|
|
396
401
|
*/
|
|
397
|
-
if(context
|
|
402
|
+
if(check_stop_frame(context))
|
|
398
403
|
{
|
|
399
404
|
context->stop_next = 1;
|
|
400
405
|
context->stop_frame = -1;
|
data/lib/debase/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: debase
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.2.
|
|
4
|
+
version: 0.2.2.beta8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dennis Ushakov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-05-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: debase-ruby_core_source
|