This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] testsuite/gdb.base: Enable disp-step-syscall.exp tests for arm targets


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-15  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.

===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/disp-step-syscall.exp,v
retrieving revision 1.10
diff -u -p -r1.10 disp-step-syscall.exp
--- gdb/testsuite/gdb.base/disp-step-syscall.exp        15 Mar 2013
01:41:28 -0000      1.10
+++ gdb/testsuite/gdb.base/disp-step-syscall.exp        10 Jun 2013
00:42:25 -0000
@@ -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
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]