aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2011-06-23 07:46:13 +0000
committerYao Qi <yao@codesourcery.com>2011-06-23 07:46:13 +0000
commitbe777e08f4ff4cd46874e4b138917de9786b6a07 (patch)
tree48663ad421a7b1aa2f9e1f670049f95659418c4e /gdb/testsuite/lib
parent615556d61ead3470e77fbd63912a6166be07585f (diff)
downloadgdb-be777e08f4ff4cd46874e4b138917de9786b6a07.zip
gdb-be777e08f4ff4cd46874e4b138917de9786b6a07.tar.gz
gdb-be777e08f4ff4cd46874e4b138917de9786b6a07.tar.bz2
gdb/testsuite/
* gdb.base/moribund-step.exp: Skip test if displaced stepping is not supported. * lib/gdb.exp (support_displaced_stepping): New.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 0e07931..f465398 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -1615,6 +1615,18 @@ proc is_x86_like_target {} {
return [is_ilp32_target]
}
+# Return 1 if displaced stepping is supported on target, otherwise, return 0.
+proc support_displaced_stepping {} {
+
+ if { [istarget "x86_64-*-linux*"] || [istarget "i\[34567\]86-*-linux*"]
+ || [istarget "arm*-*-linux*"] || [istarget "powerpc-*-linux*"]
+ || [istarget "powerpc64-*-linux*"] || [istarget "s390*-*-*"] } {
+ return 1
+ }
+
+ return 0
+}
+
# Run a test on the target to see if it supports vmx hardware. Return 0 if so,
# 1 if it does not. Based on 'check_vmx_hw_available' from the GCC testsuite.