This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[testsuite, patch] can_single_step_to_signal_handler returns 0 on target tic6x-*-*
- From: Yao Qi <yao at codesourcery dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 24 Oct 2011 21:47:15 +0800
- Subject: [testsuite, patch] can_single_step_to_signal_handler returns 0 on target tic6x-*-*
We are using software single-step on tic6x port, so unable to
single-step to signal handler. Let can_single_step_to_signal_handler
return 0 if target is "tic6x-*-*".
Without this patch, gdb.base/kill-after-signal.exp fail on c6x-uclinux,
FAIL: gdb.base/kill-after-signal.exp: stepi (timeout)
FAIL: gdb.base/kill-after-signal.exp: kill (timeout)
With this patch applied, gdb.base/kill-after-signal.exp is UNTESTED.
It is obvious, committed.
--
Yao (éå)
gdb/testsuite/
* lib/gdb.exp (can_single_step_to_signal_handler): Return 0 when
target is tic6x-*-*.
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 1476c19..644d14c 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -1536,7 +1536,8 @@ proc can_single_step_to_signal_handler {} {
# a signal is delivered during software single step, gdb is unable
# to determine the next instruction addresses, because start of signal
# handler is one of them.
- if { [istarget "arm*-*-*"] || [istarget "mips*-*-*"] } {
+ if { [istarget "arm*-*-*"] || [istarget "mips*-*-*"]
+ || [istarget "tic6x-*-*"] } {
return 0
}