Index: gdb/testsuite/gdb.arch/amd64-byte.exp |
diff --git a/gdb/testsuite/gdb.arch/amd64-byte.exp b/gdb/testsuite/gdb.arch/amd64-byte.exp |
index 023a602db7573203aef1a1fa40763d25261c33cd..c4774e6516bff41f6936c32d557d4dee48d15d70 100644 |
--- a/gdb/testsuite/gdb.arch/amd64-byte.exp |
+++ b/gdb/testsuite/gdb.arch/amd64-byte.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 |
@@ -24,9 +24,7 @@ if { ![istarget x86_64-*-* ] || ![is_lp64_target] } { |
return |
} |
-set testfile "amd64-byte" |
-set srcfile amd64-pseudo.c |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile amd64-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 |