Index: gdb/testsuite/gdb.ada/win_fu_syms.exp |
diff --git a/gdb/testsuite/gdb.ada/exprs.exp b/gdb/testsuite/gdb.ada/win_fu_syms.exp |
similarity index 51% |
copy from gdb/testsuite/gdb.ada/exprs.exp |
copy to gdb/testsuite/gdb.ada/win_fu_syms.exp |
index 764cd57fc188be672ed0e070c01ab5387f3c4641..c3cbf161a09f88e44f3da65a74b81644df702675 100644 |
--- a/gdb/testsuite/gdb.ada/exprs.exp |
+++ b/gdb/testsuite/gdb.ada/win_fu_syms.exp |
@@ -1,4 +1,4 @@ |
-# Copyright 2005, 2007, 2009-2012 Free Software Foundation, Inc. |
+# Copyright 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,29 +15,21 @@ |
load_lib "ada.exp" |
-set testdir "exprs" |
-set testfile "${testdir}/p" |
-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 ]] != "" } { |
+if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-bargs additional_flags=-shared additional_flags=-margs]] != "" } { |
return -1 |
} |
clean_restart ${testfile} |
-set bp_location [gdb_get_line_number "START" ${testdir}/p.adb] |
-runto "p.adb:$bp_location" |
+set loc [gdb_get_line_number "Integer" ${testdir}/foo.adb] |
+gdb_test "info line foo.adb:$loc" \ |
+ "Line $decimal of \".*foo\\.adb\" starts at address $hex <_ada_foo\\+$decimal> and ends at $hex <_ada_foo\\+$decimal>\\." \ |
+ "info line on variable declaration" |
-gdb_test "print X ** Y = Z" \ |
- "= true" \ |
- "Long_Long_Integer ** Y" |
+set loc [gdb_get_line_number "Do_Nothing" ${testdir}/foo.adb] |
+gdb_test "info line foo.adb:$loc" \ |
+ "Line $decimal of \".*foo\\.adb\" starts at address $hex <_ada_foo\\+$decimal> and ends at $hex <_ada_foo\\+$decimal>\\." \ |
+ "info line on Do_Nothing call" |
-gdb_test "print long_float'min (long_float (X), 8.0)" \ |
- "= 7.0" \ |
- "long_float'min" |
- |
-gdb_test "print long_float'max (long_float (X), 8.0)" \ |
- "= 8.0" \ |
- "long_float'max" |