Index: gdb/testsuite/gdb.arch/i386-permbkpt.exp |
diff --git a/gdb/testsuite/gdb.arch/i386-permbkpt.exp b/gdb/testsuite/gdb.arch/i386-permbkpt.exp |
index df3b3738f9b7bc3006e3345088ca694c51bad2fa..88bfff343a8f782a412f6031a13894712643c8e9 100644 |
--- a/gdb/testsuite/gdb.arch/i386-permbkpt.exp |
+++ b/gdb/testsuite/gdb.arch/i386-permbkpt.exp |
@@ -1,4 +1,4 @@ |
-# Copyright (C) 2009-2012 Free Software Foundation, Inc. |
+# Copyright (C) 2009-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 |
@@ -23,9 +23,7 @@ if { ![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"] } then { |
return |
} |
-set testfile "i386-permbkpt" |
-set srcfile ${testfile}.S |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile .S |
# some targets have leading underscores on assembly symbols. |
set additional_flags [gdb_target_symbol_prefix_flags] |
@@ -35,10 +33,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list |
return -1 |
} |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
-gdb_load ${binfile} |
+clean_restart ${binfile} |
gdb_test "break main" "" "First permanent break" |
gdb_test "break main" "" "Second permanent break" |