diff options
author | Yao Qi <yao@codesourcery.com> | 2014-03-26 17:44:14 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-03-27 16:34:35 +0800 |
commit | b5bee914261ea82683b7da4245790465b9373131 (patch) | |
tree | 26f7d2948ddb672043bca36e4eb3a4487c1128d9 /gdb | |
parent | 595330b7cedfac2b073e9ffc6a815221b7121f0c (diff) | |
download | gdb-b5bee914261ea82683b7da4245790465b9373131.zip gdb-b5bee914261ea82683b7da4245790465b9373131.tar.gz gdb-b5bee914261ea82683b7da4245790465b9373131.tar.bz2 |
Return zero in can_single_step_to_signal_handler for nios2-*-* target
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-*-*.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | 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 608fae0..73e935a 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -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 } |