Index: gdb/testsuite/gdb.base/sepsymtab.exp |
diff --git a/gdb/testsuite/gdb.base/sepsymtab.exp b/gdb/testsuite/gdb.base/sepsymtab.exp |
index 2104739334f868b2cea3f9ad8c8cb58f7a866989..d19075e921b84ac57de522850abd975104a323da 100644 |
--- a/gdb/testsuite/gdb.base/sepsymtab.exp |
+++ b/gdb/testsuite/gdb.base/sepsymtab.exp |
@@ -1,4 +1,4 @@ |
-# Copyright 2006-2012 Free Software Foundation, Inc. |
+# Copyright 2006-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 |
@@ -17,9 +17,7 @@ |
# test running programs |
# |
-set testfile "sepsymtab" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/${testfile}${EXEEXT} |
+standard_testfile .c |
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ |
executable {debug}] != "" } { |
@@ -33,10 +31,7 @@ if [gdb_gnu_strip_debug $binfile no-main] { |
return -1 |
} |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
-gdb_load ${binfile} |
+clean_restart ${binfile} |
set command "info sym main" |
set command_regex [string_to_regexp $command] |