summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2004-08-15 12:31:30 +0000
committerdavidxu <davidxu@FreeBSD.org>2004-08-15 12:31:30 +0000
commit06718ccca13ed8cf326a1ece43bcde9386f6a3e1 (patch)
tree2def87557ae9ba7393cc807c71b7c64045755458
parent9b0e1093a11d09a20d66c6d6378c6dba4305f2c5 (diff)
downloadFreeBSD-src-06718ccca13ed8cf326a1ece43bcde9386f6a3e1.zip
FreeBSD-src-06718ccca13ed8cf326a1ece43bcde9386f6a3e1.tar.gz
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
-rw-r--r--contrib/gdb/gdb/infrun.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/gdb/gdb/infrun.c b/contrib/gdb/gdb/infrun.c
index 6bbee5e..e84a4c7 100644
--- a/contrib/gdb/gdb/infrun.c
+++ b/contrib/gdb/gdb/infrun.c
@@ -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);
}
OpenPOWER on IntegriCloud