]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite/
authorYao Qi <yao@codesourcery.com>
Thu, 23 Jun 2011 07:46:13 +0000 (07:46 +0000)
committerYao Qi <yao@codesourcery.com>
Thu, 23 Jun 2011 07:46:13 +0000 (07:46 +0000)
* gdb.base/moribund-step.exp: Skip test if displaced stepping is not
supported.
* lib/gdb.exp (support_displaced_stepping): New.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/moribund-step.exp
gdb/testsuite/lib/gdb.exp

index d87b4ea39bc59fbe06813f12d28446dd85a253e0..9f5ed90c0b51df677718a8594d6c817e4b11b083 100644 (file)
@@ -1,3 +1,9 @@
+2011-06-23  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.base/moribund-step.exp: Skip test if displaced stepping is not
+       supported.
+       * lib/gdb.exp (support_displaced_stepping): New.
+
 2011-06-23  Yao Qi  <yao@codesourcery.com>
 
        * gdb.threads/execl.exp: Skip on remote target.
index 515ad2fb2a5b85684e593f237d160676fa474dcf..e0bdbab06459b447ce62bf22bedc8578c7ea5e64 100644 (file)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 set testfile moribund-step
+
+if { ![support_displaced_stepping] } {
+    unsupported "displaced stepping"
+    return -1
+}
+
 if { [prepare_for_testing ${testfile}.exp ${testfile} start.c] } {
     return -1
 }
index 0e07931d8795e1cda548429522bbec52d8b97e4b..f465398ab09b2053279c40e93af6a21bb4d29d42 100644 (file)
@@ -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.