debase 0.2.2.beta7 → 0.2.2.beta8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb88c91ef3e95146354e249f9abf5b7fd77d9c00
4
- data.tar.gz: 38b11129e9a2b7514942a3c242ff69e9e8288d52
3
+ metadata.gz: 2a1e87cdd51f0c7a810d7a2b756db948a0bd13e5
4
+ data.tar.gz: 12f174215bb14d1f654c056dc6aa1a47398ebac2
5
5
  SHA512:
6
- metadata.gz: 2847a664eefd4d57537360234f29405382139d69b012be10f7dd75bd32017b1bcff16bf4d51946edfc8306a771ec21f396b7563e849ec947eeb9373e7faccc74
7
- data.tar.gz: 0ce500fdf2b36d2420be71421d388d8ea5f5f1b651d8e5a6a6c4482435d742d478ab5ab7e54826f61ad04aebd6522c11298eef9030d8adb459d91b7603828941
6
+ metadata.gz: 543fbe0eaf3d28f83c5c253c29e882aa8c18ab69af027ad7b221bd256c0399db06a3479ee3dcee45f8faf18946b4dc73a86ec88bae59bfb1bef19451c507cdd6
7
+ data.tar.gz: 543fae8f7f04950feb679caa18593da3f4bc94470b71ad7afcba979e6bab2aa0fac1b85cd8fe8e34d51cf26d189da0bc22db0881eb720e9dea2242a7cf60c6ba
@@ -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->calced_stack_size == context->stop_frame)
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->calced_stack_size == context->stop_frame)
402
+ if(check_stop_frame(context))
398
403
  {
399
404
  context->stop_next = 1;
400
405
  context->stop_frame = -1;
@@ -1,3 +1,3 @@
1
1
  module Debase
2
- VERSION = "0.2.2.beta7" unless defined? VERSION
2
+ VERSION = "0.2.2.beta8" unless defined? VERSION
3
3
  end
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.beta7
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-03-21 00:00:00.000000000 Z
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