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

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

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 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/watch_arg.exp ('k') | gdb/testsuite/gdb.ada/whatis_array_val/foo.adb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.ada/whatis_array_val.exp
diff --git a/gdb/testsuite/gdb.ada/rec_return.exp b/gdb/testsuite/gdb.ada/whatis_array_val.exp
similarity index 80%
copy from gdb/testsuite/gdb.ada/rec_return.exp
copy to gdb/testsuite/gdb.ada/whatis_array_val.exp
index e291d11e366b79614a19c4773784b17f19d344eb..e937f0a57457857e8ef41f9d9f238aa74a86555f 100644
--- a/gdb/testsuite/gdb.ada/rec_return.exp
+++ b/gdb/testsuite/gdb.ada/whatis_array_val.exp
@@ -1,4 +1,4 @@
-# Copyright 2010-2012 Free Software Foundation, Inc.
+# Copyright 2012 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
@@ -13,13 +13,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-if $tracelevel then {
- strace $tracelevel
-}
-
load_lib "ada.exp"
-set testdir "rec_return"
+set testdir "whatis_array_val"
set testfile "${testdir}/foo"
set srcfile ${srcdir}/${subdir}/${testfile}.adb
set binfile ${objdir}/${subdir}/${testfile}
@@ -35,9 +31,14 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
if ![runto "foo.adb:$bp_location" ] then {
perror "Couldn't run ${testfile}"
return
-}
+}
+
+gdb_test "whatis full" \
+ "type = foo\\.full_table"
+
+gdb_test "print full" \
+ " = \\(144, 233, 377, 610, 987\\)"
-gdb_test "print bar" \
- "= \\(x => 42, s => \"ABCDEFGH\"\\)" \
- "print bar"
+gdb_test "whatis $" \
+ "type = foo\\.full_table"
« no previous file with comments | « gdb/testsuite/gdb.ada/watch_arg.exp ('k') | gdb/testsuite/gdb.ada/whatis_array_val/foo.adb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698