]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fixes for mi-fortran-modules.exp fixes
authorCarl Love <cel@us.ibm.com>
Tue, 20 Jul 2021 22:40:47 +0000 (17:40 -0500)
committerCarl Love <cel@us.ibm.com>
Tue, 3 Aug 2021 17:06:02 +0000 (12:06 -0500)
Output has additional information for a given filename.

gdb/testsuite/ChangeLog
* gdb.mi/mi-fortran-modules.exp (system_modules_pattern,
system_module_symbols_pattern): Add check for additional symbols
on the line

gdb/testsuite/gdb.mi/mi-fortran-modules.exp

index 38aa36a6353fb3f9b1e80437bdb3b87ba7e0f118..06069953afabd616a93bfaf3c4fee8cbdc5b2a8c 100644 (file)
@@ -35,9 +35,9 @@ mi_runto_main
 
 # Patterns to skip optional system modules that appear with later versions of GFortran.
 set system_modules_pattern \
-    "\{filename=\"\[^\"\]+/ieee/\[^/\]+\.F90\",fullname=\"\[^\"\]+\",symbols=\\\[(\[^\]\]+)\\\]\},"
+    "\{filename=\"\[^\"\]+/ieee/\[^/\]+\.F90\",fullname=\"\[^\"\]+\",symbols=\\\[(\[^\]\]+)\\\]\},.*"
 set system_module_symbols_pattern \
-    "\{module=\"\[^\"\]*ieee\[^\"\]*\",files=\\\[\{filename=\"\[^\"\]+\",fullname=\"\[^\"\]+\",symbols=\\\[\[^\]\]+\\\]\}\\\]\},"
+    "\{module=\"\[^\"\]*ieee\[^\"\]*\",files=\\\[\{filename=\"\[^\"\]+\",fullname=\"\[^\"\]+\",symbols=\\\[\[^\]\]+\\\]\}\\\]\},.*"
 
 mi_gdb_test "101-symbol-info-modules" \
     "101\\^done,symbols=\{debug=\\\[($system_modules_pattern)*\{filename=\"\[^\"\]+$srcfile2\",fullname=\"\[^\"\]+$srcfile2\",symbols=\\\[\{line=\"16\",name=\"mod1\"\},\{line=\"27\",name=\"mod2\"\}\\\]\},\{filename=\"\[^\"\]+$srcfile\",fullname=\"\[^\"\]+$srcfile\",symbols=\\\[\{line=\"16\",name=\"mod3\"\},\{line=\"32\",name=\"modmany\"\},\{line=\"41\",name=\"moduse\"\}\\\]\}\\\]\}" \