Skip to content

Commit

Permalink
default (unset) value for stop_frame is -1
Browse files Browse the repository at this point in the history
  • Loading branch information
os97673 committed Jul 5, 2015
1 parent 91c74ff commit 768689b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/ruby_debug/ruby_debug.c
Expand Up @@ -996,7 +996,7 @@ debug_event_hook(rb_event_flag_t event, VALUE data, VALUE self, ID mid, VALUE kl
if(debug_context->stack_size == debug_context->stop_frame)
{
debug_context->stop_next = 1;
debug_context->stop_frame = 0;
debug_context->stop_frame = -1;
/* NOTE: can't use call_at_line function here to trigger a debugger event.
this can lead to segfault. We should only unroll the stack on this event.
*/
Expand Down

0 comments on commit 768689b

Please sign in to comment.