]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: Enable catch syscall test on sparc*-*-liunx and fix logic bug.
authorDavid S. Miller <davem@redhat.com>
Fri, 26 Feb 2010 05:50:35 +0000 (05:50 +0000)
committerDavid S. Miller <davem@redhat.com>
Fri, 26 Feb 2010 05:50:35 +0000 (05:50 +0000)
gdb/testsuite/

2010-02-25  David S. Miller  <davem@davemloft.net>

* gdb.base/catch-syscall.exp: Allow to run on sparc*-*-linux and
fix logic for setting all_syscalls_numbers.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/catch-syscall.exp

index bfacf61a5d510f8664cb5ea9ed8a3229390fb099..ebc5edb9372f64a7552f4a669c33487971e9483f 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-25  David S. Miller  <davem@davemloft.net>
+
+       * gdb.base/catch-syscall.exp: Allow to run on sparc*-*-linux and
+       fix logic for setting all_syscalls_numbers.
+
 2010-02-24  Phil Muldoon  <pmuldoon@redhat.com>
 
        * Makefile.in: Add py-block and py-symbol.
index 4d5c3cb4cc615f1c366ed04f0a095b798db5dd9e..ee385adcd31b90ab85b98b9a405985f140c51af4 100644 (file)
@@ -54,7 +54,8 @@ if {![istarget "hppa*-hp-hpux*"] && ![istarget "*-linux*"]} then {
 # on some architecture.
 #if { ![istarget "i\[34567\]86-*-linux*"]
 if { ![istarget "x86_64-*-linux*"] && ![istarget "i\[34567\]86-*-linux*"]
-     && ![istarget "powerpc-*-linux*"] && ![istarget "powerpc64-*-linux*"] } {
+     && ![istarget "powerpc-*-linux*"] && ![istarget "powerpc64-*-linux*"]
+     && ![istarget "sparc-*-linux*"] && ![istarget "sparc64-*-linux*"] } {
      continue
 }
 
@@ -415,10 +416,11 @@ proc do_syscall_tests_without_xml {} {
 proc fill_all_syscalls_numbers {} {
     global all_syscalls_numbers
 
-    # For Linux on x86, PPC and PPC64, the numbers for the syscalls "close" and
-    # "chroot" are the same.
-    if { ![istarget "i\[34567\]86-*-linux*"]
-         || ![istarget "powerpc-*-linux*"] || ![istarget "powerpc64-*-linux*"] } {
+    # For Linux on x86, PPC, PPC64, SPARC and SPARC64, the numbers for the syscalls
+    # "close" and "chroot" are the same.
+    if { [istarget "i\[34567\]86-*-linux*"]
+         || [istarget "powerpc-*-linux*"] || [istarget "powerpc64-*-linux*"]
+         || [istarget "sparc-*-linux*"] || [istarget "sparc64-*-linux*"] } {
          set all_syscalls_numbers { "6" "61" }
     }
 }