debase 0.1.5 → 0.1.6
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/context.c +4 -1
- data/ext/debase_internals.c +6 -3
- 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: a95c15c1c84f5b6eec31368db15ee3ba9c055df8
|
4
|
+
data.tar.gz: 22a15f0c12539595d0c792b3adaf4f1336bd47ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e83a6b90dc4703c6a657a59ac17cd53136d0b30aa5e015974f249c84a624a76f8bba40a7aca82b5055befb69e4120dc7d6fa49e2b47910ed525d19d2ab1c3665
|
7
|
+
data.tar.gz: ee31346302ca064a5c4f1a1625064c881282b6d7bb2f139cbd35a207faa9882ef78edc77e7e4807ca633536353787017b4070d7a726efb53e5b5602c6b3fcbd6
|
data/ext/context.c
CHANGED
@@ -335,7 +335,10 @@ Context_stop_frame(VALUE self, VALUE frame)
|
|
335
335
|
Data_Get_Struct(self, debug_context_t, debug_context);
|
336
336
|
if(FIX2INT(frame) < 0 && FIX2INT(frame) >= debug_context->stack_size)
|
337
337
|
rb_raise(rb_eRuntimeError, "Stop frame is out of range.");
|
338
|
-
|
338
|
+
/* we decrease stack size by frame and 1 because we use stop_frame after
|
339
|
+
updating stack size. If that code will be changed this should be changed accordingly.
|
340
|
+
*/
|
341
|
+
debug_context->stop_frame = debug_context->calced_stack_size - FIX2INT(frame) - 1;
|
339
342
|
|
340
343
|
return frame;
|
341
344
|
}
|
data/ext/debase_internals.c
CHANGED
@@ -285,10 +285,13 @@ process_return_event(VALUE trace_point, void *data)
|
|
285
285
|
|
286
286
|
--context->calced_stack_size;
|
287
287
|
update_stack_size(context);
|
288
|
-
|
288
|
+
/* it is important to check stop_frame after stack size updated
|
289
|
+
if the order will be changed change Context_stop_frame accordingly.
|
290
|
+
*/
|
291
|
+
if(context->calced_stack_size == context->stop_frame)
|
289
292
|
{
|
290
|
-
|
291
|
-
|
293
|
+
context->stop_next = 1;
|
294
|
+
context->stop_frame = -1;
|
292
295
|
}
|
293
296
|
|
294
297
|
|
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.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dennis Ushakov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase-ruby_core_source
|