This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Return zero in can_single_step_to_signal_handler for nios2-*-* target
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Thu, 27 Mar 2014 16:33:12 +0800
- Subject: [PATCH] Return zero in can_single_step_to_signal_handler for nios2-*-* target
- Authentication-results: sourceware.org; auth=none
nios2 uses software single step, so GDB is unable to single step to
the signal handler. In order to reflect this, teach
can_single_step_to_signal_handler to return zero for nios2 target.
Patch is checked in.
gdb/testsuite:
2014-03-27 Yao Qi <yao@codesourcery.com>
* lib/gdb.exp (can_single_step_to_signal_handler): Return zero
if target is nios2-*-*.
---
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/lib/gdb.exp | 3 ++-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 45355f3..6bc1da2 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-27 Yao Qi <yao@codesourcery.com>
+
+ * lib/gdb.exp (can_single_step_to_signal_handler): Return zero
+ if target is nios2-*-*.
+
2014-03-26 Yao Qi <yao@codesourcery.com>
* lib/gdb.exp (readline_is_used): New proc.
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 19c9ef9..e29c7fb 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -1825,7 +1825,8 @@ 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 "sparc*-*-linux*"] } {
+ || [istarget "tic6x-*-*"] || [istarget "sparc*-*-linux*"]
+ || [istarget "nios2-*-*"] } {
return 0
}
--
1.7.7.6