Fix backwards compatibility with old GDBservers (PR remote/22597)
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.mi / mi-var-child-f.exp
index dd56c358cbd0ee536a18b7d45acb0eb0c2b873b0..c3d1c8f4644c6952d33cd7a744e7eeb47d9b603b 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2006-2017 Free Software Foundation, Inc.
+# Copyright 2006-2018 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
@@ -17,6 +17,7 @@
 
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
+load_lib "fortran.exp"
 
 if { [skip_fortran_tests] } { return -1 }
 
@@ -40,10 +41,9 @@ mi_runto MAIN__
 mi_create_varobj "array" "array" "create local variable array"
 
 
-# Depending on the compiler version being used, the name of the 4-byte integer
-# and real types can be printed differently.  For instance, gfortran-4.1 uses
-# "int4" whereas gfortran-4.3 uses "integer(kind=4)".
-set int4 "(int4|integer\\(kind=4\\))"
+# Depending on the compiler being used,
+# the type names can be printed differently.
+set int4 [fortran_int4]
 
 set children [list [list "array.-1" "-1" 2 "$int4 \\(2\\)"] \
                  [list "array.0" "0" 2 "$int4 \\(2\\)"] \
This page took 0.086275 seconds and 4 git commands to generate.