This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Fix signal handler single step test on Sparc/Linux
- From: David Miller <davem at davemloft dot net>
- To: gdb-patches at sourceware dot org
- Date: Wed, 16 Nov 2011 01:15:23 -0500 (EST)
- Subject: [PATCH] Fix signal handler single step test on Sparc/Linux
This target uses software single step, so we can't reliably step
into a signal handler. Thus we shouldn't run tests such as
gdb.base/kill-after-signal.exp
Ok to commit?
gdb/testsuite/
2011-11-15 David S. Miller <davem@davemloft.net>
* lib/gdb.exp (can_single_step_to_signal_handler): Return zero when
target is sparc*-*-linux
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 3f0bffd..5647172 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -1539,7 +1539,7 @@ proc can_single_step_to_signal_handler {} {
# to determine the next instruction addresses, because start of signal
# handler is one of them.
if { [istarget "arm*-*-*"] || [istarget "mips*-*-*"]
- || [istarget "tic6x-*-*"] } {
+ || [istarget "tic6x-*-*"] || [istarget "sparc*-*-linux"] } {
return 0
}