aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2010-02-26 05:50:35 +0000
committerDavid S. Miller <davem@redhat.com>2010-02-26 05:50:35 +0000
commit624f1a656217419dee7160d4e58054df712d9ade (patch)
tree84d3f777b341db389026c0b97448433aa69bb5b3 /gdb
parentfae0b24234208c1e427e8d6f4b3fd96e365ebf3a (diff)
downloadgdb-624f1a656217419dee7160d4e58054df712d9ade.zip
gdb-624f1a656217419dee7160d4e58054df712d9ade.tar.gz
gdb-624f1a656217419dee7160d4e58054df712d9ade.tar.bz2
gdb: Enable catch syscall test on sparc*-*-liunx and fix logic bug.
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/catch-syscall.exp12
2 files changed, 12 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index bfacf61..ebc5edb 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
diff --git a/gdb/testsuite/gdb.base/catch-syscall.exp b/gdb/testsuite/gdb.base/catch-syscall.exp
index 4d5c3cb..ee385ad 100644
--- a/gdb/testsuite/gdb.base/catch-syscall.exp
+++ b/gdb/testsuite/gdb.base/catch-syscall.exp
@@ -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" }
}
}