Index: infrun.c =================================================================== RCS file: /cvs/src/src/gdb/infrun.c,v retrieving revision 1.64 diff -c -r1.64 infrun.c *** infrun.c 24 Jul 2002 14:38:55 -0000 1.64 --- infrun.c 16 Aug 2002 17:55:05 -0000 *************** *** 1826,1835 **** if (stop_signal == TARGET_SIGNAL_TRAP) { ! if (SOFTWARE_SINGLE_STEP_P () && singlestep_breakpoints_inserted_p) ! ecs->random_signal = 0; ! else if (breakpoints_inserted ! && breakpoint_here_p (stop_pc - DECR_PC_AFTER_BREAK)) { ecs->random_signal = 0; if (!breakpoint_thread_match (stop_pc - DECR_PC_AFTER_BREAK, --- 1826,1836 ---- if (stop_signal == TARGET_SIGNAL_TRAP) { ! /* Check if a regular breakpoint has been hit before checking ! for a potential single step breakpoint. Otherwise, GDB will ! not see this breakpoint hit when stepping onto breakpoints. */ ! if (breakpoints_inserted ! && breakpoint_here_p (stop_pc - DECR_PC_AFTER_BREAK)) { ecs->random_signal = 0; if (!breakpoint_thread_match (stop_pc - DECR_PC_AFTER_BREAK, *************** *** 1885,1890 **** --- 1886,1895 ---- } } } + else if (SOFTWARE_SINGLE_STEP_P () && singlestep_breakpoints_inserted_p) + { + ecs->random_signal = 0; + } } else ecs->random_signal = 1;