aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorWill Newton <willnewton@sourceware.org>2013-07-19 10:24:34 +0000
committerWill Newton <willnewton@sourceware.org>2013-07-19 10:24:34 +0000
commit5d0a3b53c079d840b7e34c87a1d4301ae9f62fb1 (patch)
treeb69b6a7c563a270e65ce5cb2c71e223ae5b2b6aa /gdb
parent9a5911c08beefe3739d941af8fd44330df8f4931 (diff)
downloadgdb-5d0a3b53c079d840b7e34c87a1d4301ae9f62fb1.zip
gdb-5d0a3b53c079d840b7e34c87a1d4301ae9f62fb1.tar.gz
gdb-5d0a3b53c079d840b7e34c87a1d4301ae9f62fb1.tar.bz2
gdb/testsuite/gdb.base: Enable disp-step-syscall.exp tests for ARM.
disp-step-syscall.exp is not run for ARM targets because ARM syscall instructions have not been added to the list of possible syscall instructions. This patch adds ARM syscall instructions to enable disp-step-syscall.exp tests for ARM targets. Attached patch is tested on ARMv7 and helps pass all disp-step-syscall.exp tests for ARM targets. gdb/testsuite/ChangeLog: 2013-07-19 Omair Javaid <Omair.Javaid@linaro.org> * gdb.base/disp-step-syscall.exp: Add svc and swi syscall instructions and enable disp-step-syscall for arm targets.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/disp-step-syscall.exp2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e59abe0..7bbc17d 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2013-07-19 Omair Javaid <Omair.Javaid@linaro.org>
+ * gdb.base/disp-step-syscall.exp: Add svc and swi syscall
+ instructions and enable disp-step-syscall for arm targets.
+
+2013-07-19 Omair Javaid <Omair.Javaid@linaro.org>
+
* gdb.dwarf2/fission-reread.S: Replace @ sign with % sign to remove
assembler errors on arm.
* gdb.dwarf2/mac-fileno.S: Likewise.
diff --git a/gdb/testsuite/gdb.base/disp-step-syscall.exp b/gdb/testsuite/gdb.base/disp-step-syscall.exp
index ddbb905..654a2c6 100644
--- a/gdb/testsuite/gdb.base/disp-step-syscall.exp
+++ b/gdb/testsuite/gdb.base/disp-step-syscall.exp
@@ -26,6 +26,8 @@ set syscall_insn ""
if { [istarget "i\[34567\]86-*-linux*"] || [istarget "x86_64-*-linux*"] } {
set syscall_insn "\[ \t\](int|syscall|sysenter)\[ \t\]"
+} elseif [istarget "arm*-*-linux*"] {
+ set syscall_insn "\[ \t\](swi|svc)\[ \t\]"
} else {
return -1
}