Index: gdb/testsuite/gdb.arch/amd64-dword.exp |
diff --git a/gdb/testsuite/gdb.arch/amd64-dword.exp b/gdb/testsuite/gdb.arch/amd64-dword.exp |
index a1f615caa8006818af9eb634a04162010cbdb2e1..759cd0e56aef23d313a27f94ebdd43cf8ca37c9d 100644 |
--- a/gdb/testsuite/gdb.arch/amd64-dword.exp |
+++ b/gdb/testsuite/gdb.arch/amd64-dword.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-dword" |
-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 |