Index: gdb/testsuite/gdb.base/gdbindex-stabs.exp |
diff --git a/gdb/testsuite/gdb.base/gdbindex-stabs.exp b/gdb/testsuite/gdb.base/gdbindex-stabs.exp |
index d3964307052b4c66692942240fc527a980a27c5f..f0c59bd26f5d750167e5a9d3569ec01bd85fbc21 100644 |
--- a/gdb/testsuite/gdb.base/gdbindex-stabs.exp |
+++ b/gdb/testsuite/gdb.base/gdbindex-stabs.exp |
@@ -1,4 +1,4 @@ |
-# Copyright (C) 2011-2012 Free Software Foundation, Inc. |
+# Copyright (C) 2011-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 |
@@ -15,13 +15,11 @@ |
# This problem is reproducible only when using `gdb/cc-with-index.sh'. |
-set testfile gdbindex-stabs |
-set executable ${testfile} |
-set binfile ${objdir}/${subdir}/${executable} |
+standard_testfile gdbindex-stabs.c |
set srcfile_stabs ${testfile}.c |
set srcfile_dwarf ${testfile}-dwarf.c |
-set objfile_stabs ${testfile}.o |
-set objfile_dwarf ${testfile}-dwarf.o |
+set objfile_stabs [standard_output_file ${testfile}.o] |
+set objfile_dwarf [standard_output_file ${testfile}-dwarf.o] |
if {[gdb_compile "${srcdir}/${subdir}/${srcfile_stabs}" ${objfile_stabs} object {additional_flags=-gstabs}] != "" |
|| [gdb_compile "${srcdir}/${subdir}/${srcfile_dwarf}" ${objfile_dwarf} object {additional_flags=-gdwarf-2}] != "" |
@@ -30,7 +28,7 @@ if {[gdb_compile "${srcdir}/${subdir}/${srcfile_stabs}" ${objfile_stabs} object |
return -1 |
} |
-clean_restart ${executable} |
+clean_restart ${binfile} |
# FAIL was: No line number known for stabs_function. |
gdb_test "list stabs_function" " marker-here .*" |