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.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/ext/ruby_debug/ruby_debug.c +6 -3
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTc2NzJkODRiMjcwOGE3YTJkY2ZlMzUwNTIzYTcwODBhZDI3NTI0Ng==
4
+ MDQ0Y2FiNmFkNDllMmMwZDkwMDdjZTQ0NWEzOGY1ODkxYjMxY2I1Mw==
5
5
  data.tar.gz: !binary |-
6
- NDU5YjA1MTkzMTc5MmQ3ZGYyZGU5MmE4NzM1ZTBkMjUxZTdmYjg5MA==
6
+ ZmQxNmI2YTliYmVjMWIwN2YzZTE5N2M0MTM0NGM4YWYzNjhmNTNlMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODIwYmUxYTRiOWZmNmNkNjQxYzE4NDU5OWRlMmZmZjhlMzY4NmM2YTE3MTM3
10
- MjZjNGY0MWYxN2I5N2QyYzNhOTZjYmZlNTliYTY4YWUzYmQzZDRjMTM2YjI4
11
- MmRjYjcwMGJkODZiYTcxYzM5YTRkMzkwZDc5Y2U2YzExNTc1ZmY=
9
+ MTI5ZDBlZGJkNWVlNDVmYjM1OWJjMmQwMjMzODkwNGM1MGQ4NDY5ZjEzMmM0
10
+ MjUzMjJjNGQ0MmY0ZmRlNmIyNjhjYzljOTlhNTBmOGM3ZDgxNGZlYTFkYTFl
11
+ NjBjZGY3OGRmZDBjZTgxOTc1NjNjMTg3ZjFkMjU4MzQ2OTdkZjQ=
12
12
  data.tar.gz: !binary |-
13
- MTc5M2I2ZmI0NDliZGNlNGM3MWNkZDBiMzUxZTIzYjA1ZTgzOTY0ZDAxNmVh
14
- YWRjNDlmODUxZTNiNjZmMGNkYTBkY2VmZGVjMWIzOWFhNDMyNDliNzI5Y2Vh
15
- YThjMzdkMGUxNDE0YjRmOWNlNTUyZGEyMGI1NzUyZGM3YjUzZjA=
13
+ M2MzYjI2N2Q0MDgwMDdlYmE0M2UxZmIxOGM2MmNhMmJkZjM0ZWRmNDJmNDBi
14
+ NzVlMzQyMDkzYjY5ZTM4YjdhZjBjZjgyNDUwZDMyODRiMmY2OGZmY2JiNzRl
15
+ YjNhYTBmZjJiZjZkYTZkZWM4M2Q1ZGY0NzgyNDAzNzcwZTVjNmI=
@@ -9,7 +9,7 @@
9
9
  #include <insns_info.inc>
10
10
  #include "ruby_debug.h"
11
11
 
12
- #define DEBUG_VERSION "0.11.31"
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 = 0;
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.31
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: 2015-02-06 00:00:00.000000000 Z
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.4.5
89
+ rubygems_version: 2.6.14
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Fast Ruby debugger - core component