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:
David Xu 2004-08-15 12:31:30 +00:00
parent d1d6dbf120
commit 82552011ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133748

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);
}