Index: gdb/testsuite/gdb.arch/i386-word.exp |
diff --git a/gdb/testsuite/gdb.arch/i386-word.exp b/gdb/testsuite/gdb.arch/i386-word.exp |
index fb402fbb769683acfff605b3451548df4ee24aca..b19ce4002ed2a09ab6f8fe3d635c21880627ab6e 100644 |
--- a/gdb/testsuite/gdb.arch/i386-word.exp |
+++ b/gdb/testsuite/gdb.arch/i386-word.exp |
@@ -1,4 +1,4 @@ |
-# Copyright 2010-2012 Free Software Foundation, Inc. |
+# Copyright 2010-2013 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 |
@@ -19,14 +19,12 @@ |
# This file is part of the gdb testsuite. |
-if {(![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"]) || ![is_ilp32_target] } then { |
+if {(![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"])} then { |
verbose "Skipping i386 word register tests." |
return |
} |
-set testfile "i386-word" |
-set srcfile i386-pseudo.c |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile i386-pseudo.c |
if [get_compiler_info] { |
return -1 |
@@ -37,10 +35,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list |
return |
} |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
-gdb_load ${binfile} |
+clean_restart ${binfile} |
if ![runto_main] then { |
gdb_suppress_tests |