Disable surplus detection of breakpoint event in signal stack, the check

causes a normal breakpoint event in new thread to be ignored unexpectly,
result is process SIGSEGV.

Test on: AMD64, i386
This commit is contained in:
davidxu 2004-08-15 12:31:30 +00:00
parent 9b0e1093a1
commit 06718ccca1

View File

@ -1395,7 +1395,11 @@ adjust_pc_after_break (struct execution_control_state *ecs)
|| (software_breakpoint_inserted_here_p (stop_pc)
&& !(currently_stepping (ecs)
&& prev_pc != stop_pc
#if 1
&& !(step_range_end))))
#else
&& !(step_range_end && INNER_THAN (read_sp (), (step_sp - 16))))))
#endif
write_pc_pid (stop_pc, ecs->ptid);
}