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 +4 -4
- data/CHANGELOG.md +4 -0
- data/ext/byebug/breakpoint.c +1 -1
- data/ext/byebug/byebug.c +5 -5
- data/ext/byebug/byebug.h +5 -5
- data/ext/byebug/context.c +4 -4
- data/ext/byebug/locker.c +4 -4
- data/ext/byebug/threads.c +3 -3
- data/lib/byebug/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd86392034f3aba2753dda513ff05dadf130a4fd86e6663109a6b107504b0055
|
4
|
+
data.tar.gz: 32e37a7cdfa11585b100267e478b634a9b09c466e9c45371bc2b6b0c5ebcac63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58ab6bdea6ec95d9926b66a0edbaac9f8fe2755cbf86c3c562e680ec954ac2335eb45ccda1c8700143f4f05b0f18064b2f74e6b1da86bb8ca4996bc03931c326
|
7
|
+
data.tar.gz: 38cfa437dcb05ae51935d6f59bcea6a84ccc532d927e82f0b1aa2e5afe2f85a14f66cf0f8d150b5421ad234dc2822a14ecd3ec768a0f6c63a5ada1381014f7fa
|
data/CHANGELOG.md
CHANGED
data/ext/byebug/breakpoint.c
CHANGED
data/ext/byebug/byebug.c
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
895
|
+
Init_byebug_breakpoint(mByebug);
|
896
896
|
|
897
897
|
rb_global_variable(&breakpoints);
|
898
898
|
rb_global_variable(&catchpoints);
|
data/ext/byebug/byebug.h
CHANGED
@@ -107,9 +107,9 @@ typedef struct
|
|
107
107
|
} breakpoint_t;
|
108
108
|
|
109
109
|
/* functions from locker.c */
|
110
|
-
extern void
|
111
|
-
extern VALUE
|
112
|
-
extern void
|
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
|
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
|
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
|
|
data/ext/byebug/context.c
CHANGED
@@ -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.
|
8
|
+
* to stop next. byebug_reset_stepping_stop_points removes/resets this information. */
|
9
9
|
extern void
|
10
|
-
|
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
|
-
|
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
|
-
|
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
|
|
data/ext/byebug/locker.c
CHANGED
@@ -29,7 +29,7 @@ is_in_locked(VALUE thread)
|
|
29
29
|
}
|
30
30
|
|
31
31
|
extern void
|
32
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
84
|
+
byebug_pop_from_locked();
|
85
85
|
return;
|
86
86
|
}
|
87
87
|
|
data/ext/byebug/threads.c
CHANGED
@@ -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
|
-
|
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 =
|
162
|
+
thread = byebug_pop_from_locked();
|
163
163
|
else
|
164
164
|
{
|
165
|
-
|
165
|
+
byebug_remove_from_locked(next_thread);
|
166
166
|
thread = next_thread;
|
167
167
|
next_thread = Qnil;
|
168
168
|
}
|
data/lib/byebug/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2018-03-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|