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

Unified Diff: gdb/testsuite/lib/go.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/lib/gdbserver-support.exp ('k') | gdb/testsuite/lib/mi-support.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/lib/go.exp
diff --git a/gdb/testsuite/lib/fortran.exp b/gdb/testsuite/lib/go.exp
similarity index 59%
copy from gdb/testsuite/lib/fortran.exp
copy to gdb/testsuite/lib/go.exp
index 5cb8e4932a8d0e5b8b782e933098ddc898217b9e..e8466bbc25e1378fd72c703ab4976b7c00c34e6c 100644
--- a/gdb/testsuite/lib/fortran.exp
+++ b/gdb/testsuite/lib/go.exp
@@ -1,6 +1,4 @@
-# This test code is part of GDB, the GNU debugger.
-
-# 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
@@ -15,16 +13,25 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Auxiliary function to set the language to fortran.
+# FIXME: Presumably skip_go_tests should be defined here,
+# but for consistency with other languages it currently lives in gdb.exp.
+
+# Auxiliary function to set the language to Go.
# The result is 1 (true) for success, 0 (false) for failure.
-proc set_lang_fortran {} {
- if [gdb_test_no_output "set language fortran"] {
+proc set_lang_go {} {
+ if [gdb_test_no_output "set language go"] {
return 0
}
- if [gdb_test "show language" ".* source language is \"fortran\"." \
- "set language to \"fortran\""] {
+ if [gdb_test "show language" ".* source language is \"go\"." \
+ "set language to \"go\""] {
return 0
}
- return 1;
+ return 1
+}
+
+# Go version of runto_main.
+
+proc go_runto_main { } {
+ return [runto main.main]
}
« no previous file with comments | « gdb/testsuite/lib/gdbserver-support.exp ('k') | gdb/testsuite/lib/mi-support.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698