Return zero in can_single_step_to_signal_handler for nios2-*-* target
authorYao Qi <yao@codesourcery.com>
Wed, 26 Mar 2014 09:44:14 +0000 (17:44 +0800)
committerYao Qi <yao@codesourcery.com>
Thu, 27 Mar 2014 08:34:35 +0000 (16:34 +0800)
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.

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
gdb/testsuite/lib/gdb.exp

index 45355f3ac6c87fa86bbf0d1e0ce76ab0845fb7d3..6bc1da29368f5e4be9fc0e83764233440edfe5aa 100644 (file)
@@ -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.
index 608fae0b5bb859a238e5c071b068a1dff8c550e9..73e935a106ab06f4ee55a644eb8eeeb24b7b115f 100644 (file)
@@ -1792,7 +1792,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
     }