gdb/python: don't allow the user to delete window title attributes
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / mips_pro.exp
index e12ecae711ad025d26827046756958525544e159..22af73dc1d95fce773ed7bbfcf17d3986b40869d 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright 1997, 1999-2001, 2003, 2007-2012 Free Software Foundation,
-# Inc.
+# Copyright 1997-2021 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if $tracelevel then {
-       strace $tracelevel
-}
-
 
-set testfile mips_pro
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile
 
 # Create and source the file that provides information about the compiler
 # used to compile the test case.
-if [get_compiler_info ${binfile}] {
-    return -1;
+if [get_compiler_info] {
+    return -1
 }
 
 
 # This test must be compiled with -O2 if using gcc.
 
+set options debug
 if { [test_compiler_info gcc-*-*] } then {
-    if  { [gdb_compile "${srcdir}/$subdir/${srcfile}" "${binfile}" \
-           executable {debug additional_flags=-O2 additional_flags=-fno-inline}] != "" } {
-     untested mips_pro.exp
-     return -1
-    }
-} else {
-    if  { [gdb_compile "${srcdir}/$subdir/${srcfile}" "${binfile}" executable {debug}] != "" } {
-     untested mips_pro.exp
-     return -1
-    }
+    lappend options additional_flags=-O2 additional_flags=-fno-inline
 }
 
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+if {[prepare_for_testing "failed to prepare" $testfile $srcfile $options]} {
+    return -1
+}
 
 if [runto middle] then {
     # PR 3016
     #   warning: Hit heuristic-fence-post without finding
     #   warning: enclosing function for pc 0x1006ead0
     if { [test_compiler_info gcc-*-*] } then {
-       setup_xfail "mips*-sgi-irix4*" "mips64*-*-elf"
+       setup_xfail "mips64*-*-elf"
     }
     # The call chain is main -> top -> middle.  But gcc can optimize a tail
     # call to a jump, so the stack may contain either main -> top -> middle
This page took 0.02446 seconds and 4 git commands to generate.