byebug 10.0.1 → 10.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af479e33dcc1cf0ca62e4afe7da8b4a5fa3f07b5ea759c34f6eecea1922cbbf6
4
- data.tar.gz: 37c22c79cbb8923d51845403076eb5f186e851dc2b3aea7cedaffa0f4dd6c721
3
+ metadata.gz: cd86392034f3aba2753dda513ff05dadf130a4fd86e6663109a6b107504b0055
4
+ data.tar.gz: 32e37a7cdfa11585b100267e478b634a9b09c466e9c45371bc2b6b0c5ebcac63
5
5
  SHA512:
6
- metadata.gz: 2783b8ff14d13a14d0dbf20097571a8a8111cb6d9dce98ee1760fb1f7c798f50170a0711ed6ac5df066cc26035380e51021d6bc3d7bb492d20979cbbb1a60cca
7
- data.tar.gz: ed8c931230b56c6d84869ca97bbf11b7cd76b29e438aac921e32c0aacab9bb70f77f7d59b8e327a30fbafb70359865b4aa1f57fab59aaeeab4e96fd58e150ef2
6
+ metadata.gz: 58ab6bdea6ec95d9926b66a0edbaac9f8fe2755cbf86c3c562e680ec954ac2335eb45ccda1c8700143f4f05b0f18064b2f74e6b1da86bb8ca4996bc03931c326
7
+ data.tar.gz: 38cfa437dcb05ae51935d6f59bcea6a84ccc532d927e82f0b1aa2e5afe2f85a14f66cf0f8d150b5421ad234dc2822a14ecd3ec768a0f6c63a5ada1381014f7fa
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Master (Unreleased)
4
4
 
5
+ ## 10.0.2 - 2018-03-30
6
+
7
+ * Error when using byebug with `debase` gem (#447, @tzmfreedom)
8
+
5
9
  ## 10.0.1 - 2018-03-21
6
10
 
7
11
  ### Fixed
@@ -491,7 +491,7 @@ find_breakpoint_by_method(VALUE breakpoints, VALUE klass, ID mid, VALUE bind,
491
491
  }
492
492
 
493
493
  void
494
- Init_breakpoint(VALUE mByebug)
494
+ Init_byebug_breakpoint(VALUE mByebug)
495
495
  {
496
496
  breakpoint_max = 0;
497
497
 
@@ -244,7 +244,7 @@ call_at_line_check(VALUE ctx, debug_context_t *dc, VALUE breakpoint)
244
244
  if (!NIL_P(breakpoint))
245
245
  call_at_breakpoint(ctx, dc, breakpoint);
246
246
 
247
- reset_stepping_stop_points(dc);
247
+ byebug_reset_stepping_stop_points(dc);
248
248
 
249
249
  call_at_line(ctx, dc);
250
250
  }
@@ -344,7 +344,7 @@ return_event(VALUE trace_point, void *data)
344
344
 
345
345
  if ((dc->steps_out == 0) && (CTX_FL_TEST(dc, CTX_FL_STOP_ON_RET)))
346
346
  {
347
- reset_stepping_stop_points(dc);
347
+ byebug_reset_stepping_stop_points(dc);
348
348
 
349
349
  call_at_return(context, dc, rb_tracearg_return_value(trace_arg));
350
350
  }
@@ -393,7 +393,7 @@ end_event(VALUE trace_point, void *data)
393
393
 
394
394
  if ((dc->steps_out == 0) && (CTX_FL_TEST(dc, CTX_FL_STOP_ON_RET)))
395
395
  {
396
- reset_stepping_stop_points(dc);
396
+ byebug_reset_stepping_stop_points(dc);
397
397
 
398
398
  call_at_end(context, dc);
399
399
  }
@@ -747,7 +747,7 @@ Debug_load(int argc, VALUE *argv, VALUE self)
747
747
  if (0 != state)
748
748
  {
749
749
  status = rb_errinfo();
750
- reset_stepping_stop_points(dc);
750
+ byebug_reset_stepping_stop_points(dc);
751
751
  }
752
752
 
753
753
  return status;
@@ -892,7 +892,7 @@ Init_byebug()
892
892
 
893
893
  Init_threads_table(mByebug);
894
894
  Init_byebug_context(mByebug);
895
- Init_breakpoint(mByebug);
895
+ Init_byebug_breakpoint(mByebug);
896
896
 
897
897
  rb_global_variable(&breakpoints);
898
898
  rb_global_variable(&catchpoints);
@@ -107,9 +107,9 @@ typedef struct
107
107
  } breakpoint_t;
108
108
 
109
109
  /* functions from locker.c */
110
- extern void add_to_locked(VALUE thread);
111
- extern VALUE pop_from_locked();
112
- extern void remove_from_locked(VALUE thread);
110
+ extern void byebug_add_to_locked(VALUE thread);
111
+ extern VALUE byebug_pop_from_locked();
112
+ extern void byebug_remove_from_locked(VALUE thread);
113
113
 
114
114
  /* functions from threads.c */
115
115
  extern void Init_threads_table(VALUE mByebug);
@@ -127,13 +127,13 @@ extern VALUE next_thread;
127
127
  extern void Init_byebug_context(VALUE mByebug);
128
128
  extern VALUE byebug_context_create(VALUE thread);
129
129
  extern VALUE context_dup(debug_context_t *context);
130
- extern void reset_stepping_stop_points(debug_context_t *context);
130
+ extern void byebug_reset_stepping_stop_points(debug_context_t *context);
131
131
  extern VALUE call_with_debug_inspector(struct call_with_inspection_data *data);
132
132
  extern VALUE context_backtrace_set(const rb_debug_inspector_t *inspector,
133
133
  void *data);
134
134
 
135
135
  /* functions from breakpoint.c */
136
- extern void Init_breakpoint(VALUE mByebug);
136
+ extern void Init_byebug_breakpoint(VALUE mByebug);
137
137
  extern VALUE find_breakpoint_by_pos(VALUE breakpoints, VALUE source, VALUE pos,
138
138
  VALUE bind);
139
139
 
@@ -5,9 +5,9 @@ static VALUE cDebugThread;
5
5
  static int thnum_max = 0;
6
6
 
7
7
  /* "Step", "Next" and "Finish" do their work by saving information about where
8
- * to stop next. reset_stepping_stop_points removes/resets this information. */
8
+ * to stop next. byebug_reset_stepping_stop_points removes/resets this information. */
9
9
  extern void
10
- reset_stepping_stop_points(debug_context_t *context)
10
+ byebug_reset_stepping_stop_points(debug_context_t *context)
11
11
  {
12
12
  context->dest_frame = -1;
13
13
  context->lines = -1;
@@ -63,7 +63,7 @@ byebug_context_create(VALUE thread)
63
63
  context->flags = 0;
64
64
  context->thnum = ++thnum_max;
65
65
  context->thread = thread;
66
- reset_stepping_stop_points(context);
66
+ byebug_reset_stepping_stop_points(context);
67
67
  context->stop_reason = CTX_STOP_NONE;
68
68
 
69
69
  rb_debug_inspector_open(context_backtrace_set, (void *)context);
@@ -81,7 +81,7 @@ context_dup(debug_context_t *context)
81
81
  debug_context_t *new_context = ALLOC(debug_context_t);
82
82
 
83
83
  memcpy(new_context, context, sizeof(debug_context_t));
84
- reset_stepping_stop_points(new_context);
84
+ byebug_reset_stepping_stop_points(new_context);
85
85
  new_context->backtrace = context->backtrace;
86
86
  CTX_FL_SET(new_context, CTX_FL_DEAD);
87
87
 
@@ -29,7 +29,7 @@ is_in_locked(VALUE thread)
29
29
  }
30
30
 
31
31
  extern void
32
- add_to_locked(VALUE thread)
32
+ byebug_add_to_locked(VALUE thread)
33
33
  {
34
34
  locked_thread_t *node;
35
35
 
@@ -50,7 +50,7 @@ add_to_locked(VALUE thread)
50
50
  }
51
51
 
52
52
  extern VALUE
53
- pop_from_locked()
53
+ byebug_pop_from_locked()
54
54
  {
55
55
  VALUE thread;
56
56
  locked_thread_t *node;
@@ -71,7 +71,7 @@ pop_from_locked()
71
71
  }
72
72
 
73
73
  extern void
74
- remove_from_locked(VALUE thread)
74
+ byebug_remove_from_locked(VALUE thread)
75
75
  {
76
76
  locked_thread_t *node;
77
77
  locked_thread_t *next_node;
@@ -81,7 +81,7 @@ remove_from_locked(VALUE thread)
81
81
 
82
82
  if (locked_head->thread == thread)
83
83
  {
84
- pop_from_locked();
84
+ byebug_pop_from_locked();
85
85
  return;
86
86
  }
87
87
 
@@ -134,7 +134,7 @@ acquire_lock(debug_context_t *dc)
134
134
  while ((!NIL_P(locker) && locker != rb_thread_current())
135
135
  || CTX_FL_TEST(dc, CTX_FL_SUSPEND))
136
136
  {
137
- add_to_locked(rb_thread_current());
137
+ byebug_add_to_locked(rb_thread_current());
138
138
  rb_thread_stop();
139
139
 
140
140
  if (CTX_FL_TEST(dc, CTX_FL_SUSPEND))
@@ -159,10 +159,10 @@ release_lock(void)
159
159
  locker = Qnil;
160
160
 
161
161
  if (NIL_P(next_thread))
162
- thread = pop_from_locked();
162
+ thread = byebug_pop_from_locked();
163
163
  else
164
164
  {
165
- remove_from_locked(next_thread);
165
+ byebug_remove_from_locked(next_thread);
166
166
  thread = next_thread;
167
167
  next_thread = Qnil;
168
168
  }
@@ -4,5 +4,5 @@
4
4
  # Reopen main module to define the library version
5
5
  #
6
6
  module Byebug
7
- VERSION = "10.0.1".freeze
7
+ VERSION = "10.0.2".freeze
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: byebug
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.1
4
+ version: 10.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Rodriguez
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2018-03-21 00:00:00.000000000 Z
13
+ date: 2018-03-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler