Index: gdb/testsuite/gdb.ada/small_reg_param.exp |
diff --git a/gdb/testsuite/gdb.ada/small_reg_param.exp b/gdb/testsuite/gdb.ada/small_reg_param.exp |
index c8ab9cf82db047f93d5b2d05d203d233c65bf468..b3cf2d8d241f92d308beed244486773435b67624 100644 |
--- a/gdb/testsuite/gdb.ada/small_reg_param.exp |
+++ b/gdb/testsuite/gdb.ada/small_reg_param.exp |
@@ -1,4 +1,4 @@ |
-# Copyright 2011-2012 Free Software Foundation, Inc. |
+# Copyright 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,12 +15,8 @@ |
load_lib "ada.exp" |
-set testdir "small_reg_param" |
-set testfile "${testdir}/foo" |
-set srcfile ${srcdir}/${subdir}/${testfile}.adb |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_ada_testfile foo |
-file mkdir ${objdir}/${subdir}/${testdir} |
if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug optimize=-O1]] != "" } { |
return -1 |
} |
@@ -30,14 +26,14 @@ clean_restart ${testfile} |
if ![runto main] then { |
perror "Couldn't run ${testfile}" |
return |
-} |
+} |
gdb_breakpoint "call_me" |
# Continue until we hit the breakpoint inside `Call_Me'. We verify |
# that the parameter value is correct. |
gdb_test "continue" \ |
- "Breakpoint .*, pck\\.call_me \\(w=50\\) at .*/pck.adb:.*" \ |
+ "Breakpoint .*, pck\\.call_me \\(w=(w@entry=)?50\\) at .*/pck.adb:.*" \ |
"continue to call_me" |
# And just to make sure, we also verify that the parameter value |