Index: gdb/testsuite/gdb.base/prologue.exp |
diff --git a/gdb/testsuite/gdb.base/prologue.exp b/gdb/testsuite/gdb.base/prologue.exp |
index ddf5d676b6d03448e4d8ea3b52b88a0abaa0f68b..ebc1adfbc186463c8459c05c90f28cd6b326b358 100644 |
--- a/gdb/testsuite/gdb.base/prologue.exp |
+++ b/gdb/testsuite/gdb.base/prologue.exp |
@@ -1,5 +1,5 @@ |
# Test for prologue skipping in minimal symbols with line info. |
-# Copyright 2007-2012 Free Software Foundation, Inc. |
+# Copyright 2007-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 |
@@ -16,19 +16,14 @@ |
if { [skip_cplus_tests] } { continue } |
-set testfile "prologue" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile .c |
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { |
untested prologue.exp |
return -1 |
} |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
-gdb_load ${binfile} |
+clean_restart ${binfile} |
if ![runto_main] then { |
perror "couldn't run to breakpoint" |