]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.fortran/library-module.exp
gdb/fortran: Allow Flang MAIN_ in Fortran testing
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.fortran / library-module.exp
index f25988e32c881b2d73685d2039a6e588b3fd629f..8254fcf10a3eb602e6f646b4ec3947e7b366fe23 100644 (file)
@@ -40,9 +40,10 @@ if  { [gdb_compile $srcdir/$subdir/$srcfile $binfile executable [list debug f90
 clean_restart $testfile
 
 gdb_load_shlib $libfile
+load_lib fortran.exp
 
-if ![runto MAIN__] then {
-    perror "couldn't run to breakpoint MAIN__"
+if ![fortran_runto_main] then {
+    perror "couldn't run to main"
     continue
 }