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

Unified Diff: gdb/testsuite/lib/ada.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.xml/tdesc-xinclude.exp ('k') | gdb/testsuite/lib/append_gdb_boards_dir.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/lib/ada.exp
diff --git a/gdb/testsuite/lib/ada.exp b/gdb/testsuite/lib/ada.exp
index 5845c1ace0cad3a124ea5024c8770fe0148676ab..c530f6849a64fda6e0d8cf354efa47aa59853e5b 100644
--- a/gdb/testsuite/lib/ada.exp
+++ b/gdb/testsuite/lib/ada.exp
@@ -1,4 +1,4 @@
-# Copyright 2004, 2007-2012 Free Software Foundation, Inc.
+# Copyright 2004-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
@@ -38,3 +38,25 @@ proc gdb_compile_ada {source dest type options} {
return $result
}
+# Like standard_testfile, but for Ada. Historically the Ada tests
+# used a different naming convention from many of the other gdb tests,
+# and this difference was preserved during the conversion to
+# standard_testfile. DIR defaults to the base name of the test case;
+# but can be overridden to find sources in a different subdirectory of
+# gdb.ada.
+
+proc standard_ada_testfile {base_file {dir ""}} {
+ global gdb_test_file_name srcdir subdir
+ global testdir testfile srcfile binfile
+
+ if {$dir == ""} {
+ set testdir $gdb_test_file_name
+ } else {
+ set testdir $dir
+ }
+ set testfile $testdir/$base_file
+ set srcfile $srcdir/$subdir/$testfile.adb
+ set binfile [standard_output_file $testfile]
+
+ file mkdir [standard_output_file $testdir]
+}
« no previous file with comments | « gdb/testsuite/gdb.xml/tdesc-xinclude.exp ('k') | gdb/testsuite/lib/append_gdb_boards_dir.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698