ruby-debug-base19x 0.11.31 → 0.11.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/ext/ruby_debug/ruby_debug.c +6 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDQ0Y2FiNmFkNDllMmMwZDkwMDdjZTQ0NWEzOGY1ODkxYjMxY2I1Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmQxNmI2YTliYmVjMWIwN2YzZTE5N2M0MTM0NGM4YWYzNjhmNTNlMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTI5ZDBlZGJkNWVlNDVmYjM1OWJjMmQwMjMzODkwNGM1MGQ4NDY5ZjEzMmM0
|
10
|
+
MjUzMjJjNGQ0MmY0ZmRlNmIyNjhjYzljOTlhNTBmOGM3ZDgxNGZlYTFkYTFl
|
11
|
+
NjBjZGY3OGRmZDBjZTgxOTc1NjNjMTg3ZjFkMjU4MzQ2OTdkZjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2MzYjI2N2Q0MDgwMDdlYmE0M2UxZmIxOGM2MmNhMmJkZjM0ZWRmNDJmNDBi
|
14
|
+
NzVlMzQyMDkzYjY5ZTM4YjdhZjBjZjgyNDUwZDMyODRiMmY2OGZmY2JiNzRl
|
15
|
+
YjNhYTBmZjJiZjZkYTZkZWM4M2Q1ZGY0NzgyNDAzNzcwZTVjNmI=
|
data/ext/ruby_debug/ruby_debug.c
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
#include <insns_info.inc>
|
10
10
|
#include "ruby_debug.h"
|
11
11
|
|
12
|
-
#define DEBUG_VERSION "0.11.
|
12
|
+
#define DEBUG_VERSION "0.11.32"
|
13
13
|
|
14
14
|
#define FRAME_N(n) (&debug_context->frames[debug_context->stack_size-(n)-1])
|
15
15
|
#define GET_FRAME (FRAME_N(check_frame_number(debug_context, frame)))
|
@@ -86,6 +86,7 @@ typedef struct locked_thread_t {
|
|
86
86
|
|
87
87
|
static locked_thread_t *locked_head = NULL;
|
88
88
|
static locked_thread_t *locked_tail = NULL;
|
89
|
+
static rb_event_flag_t last_hook_event = RUBY_EVENT_NONE;
|
89
90
|
|
90
91
|
/* "Step", "Next" and "Finish" do their work by saving information
|
91
92
|
about where to stop next. reset_stopping_points removes/resets this
|
@@ -876,7 +877,7 @@ debug_event_hook(rb_event_flag_t event, VALUE data, VALUE self, ID mid, VALUE kl
|
|
876
877
|
if (CTX_FL_TEST(debug_context, CTX_FL_SKIPPED))
|
877
878
|
goto cleanup;
|
878
879
|
|
879
|
-
if ((event == RUBY_EVENT_LINE) && (debug_context->stack_size > 0) &&
|
880
|
+
if ((event == RUBY_EVENT_LINE) && (last_hook_event == RUBY_EVENT_LINE) && (debug_context->stack_size > 0) &&
|
880
881
|
(get_top_frame(debug_context)->line == line) && (get_top_frame(debug_context)->info.runtime.cfp->iseq == iseq) &&
|
881
882
|
!CTX_FL_TEST(debug_context, CTX_FL_CATCHING))
|
882
883
|
{
|
@@ -886,6 +887,8 @@ debug_event_hook(rb_event_flag_t event, VALUE data, VALUE self, ID mid, VALUE kl
|
|
886
887
|
}
|
887
888
|
}
|
888
889
|
|
890
|
+
last_hook_event = event;
|
891
|
+
|
889
892
|
if(debug == Qtrue)
|
890
893
|
fprintf(stderr, "%s:%d [%s] %s\n", file, line, get_event_name(event), rb_id2name(mid));
|
891
894
|
|
@@ -996,7 +999,7 @@ debug_event_hook(rb_event_flag_t event, VALUE data, VALUE self, ID mid, VALUE kl
|
|
996
999
|
if(debug_context->stack_size == debug_context->stop_frame)
|
997
1000
|
{
|
998
1001
|
debug_context->stop_next = 1;
|
999
|
-
debug_context->stop_frame =
|
1002
|
+
debug_context->stop_frame = -1;
|
1000
1003
|
/* NOTE: can't use call_at_line function here to trigger a debugger event.
|
1001
1004
|
this can lead to segfault. We should only unroll the stack on this event.
|
1002
1005
|
*/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-debug-base19x
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kent Sibilev, Mark Moseley, JetBrains RubyMine Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debugger-ruby_core_source
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project: ruby-debug19
|
89
|
-
rubygems_version: 2.
|
89
|
+
rubygems_version: 2.6.14
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Fast Ruby debugger - core component
|