Skip to content

Commit 4fab06a

Browse files
committed
reworked stop skipping breakpoints on the same line
1 parent 32f523f commit 4fab06a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/ruby_debug/ruby_debug.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <insns_info.inc>
1010
#include "ruby_debug.h"
1111

12-
#define DEBUG_VERSION "0.11.25.jb"
12+
#define DEBUG_VERSION "0.11.25.jb2"
1313

1414
#define FRAME_N(n) (&debug_context->frames[debug_context->stack_size-(n)-1])
1515
#define GET_FRAME (FRAME_N(check_frame_number(debug_context, frame)))
@@ -825,7 +825,8 @@ debug_event_hook(rb_event_flag_t event, VALUE data, VALUE self, ID mid, VALUE kl
825825

826826
/* There can be many event calls per line, but we only want
827827
*one* breakpoint per line. */
828-
if(debug_context->last_line != line || debug_context->last_file == NULL ||
828+
if(!CTX_FL_TEST(debug_context, CTX_FL_FORCE_MOVE) ||
829+
debug_context->last_line != line || debug_context->last_file == NULL ||
829830
strcmp(debug_context->last_file, file) != 0)
830831
{
831832
CTX_FL_SET(debug_context, CTX_FL_ENABLE_BKPT);

0 commit comments

Comments
 (0)