Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Unified Diff: gdb/testsuite/gdb.ada/win_fu_syms.exp

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.ada/widewide/pck.ads ('k') | gdb/testsuite/gdb.ada/win_fu_syms/foo.adb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
« no previous file with comments | « gdb/testsuite/gdb.ada/widewide/pck.ads ('k') | gdb/testsuite/gdb.ada/win_fu_syms/foo.adb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698