@@ -323,7 +323,6 @@ process_line_event(VALUE trace_point, void *data)
323323 char * file ;
324324 int line ;
325325 int moved ;
326- int not_user_code = 0 ;
327326
328327 context_object = Debase_current_context (mDebase );
329328 Data_Get_Struct (context_object , debug_context_t , context );
@@ -338,16 +337,6 @@ process_line_event(VALUE trace_point, void *data)
338337 file = RSTRING_PTR (path );
339338 line = FIX2INT (lineno );
340339
341- int i ;
342- if (context -> calced_stack_size < context -> init_stack_size ) {
343- for (i = 0 ; i < context -> init_stack_size ; i ++ )
344- {
345- if (strcmp (file , context -> init_stack_files [i ]) == 0 ) {
346- not_user_code = 1 ;
347- }
348- }
349- }
350-
351340 update_stack_size (context );
352341 print_event (tp , context );
353342
@@ -384,7 +373,7 @@ process_line_event(VALUE trace_point, void *data)
384373 }
385374
386375 breakpoint = breakpoint_find (breakpoints , path , lineno , trace_point );
387- if (not_user_code == 0 && ( context -> stop_next == 0 || context -> stop_line == 0 || breakpoint != Qnil ) ) {
376+ if (context -> stop_next == 0 || context -> stop_line == 0 || breakpoint != Qnil ) {
388377 rb_ensure (start_inspector , context_object , stop_inspector , Qnil );
389378 context -> stop_reason = CTX_STOP_STEP ;
390379 if (breakpoint != Qnil ) {
0 commit comments