+2018-06-22 Tom de Vries <tdevries@suse.de>
+
+ * lib/gcc-gdb-test.exp (report_gdb): New proc.
+ * g++.dg/guality/guality.exp: Use report_gdb.
+ * gcc.dg/guality/guality.exp: Same.
+ * gfortran.dg/guality/guality.exp: Same.
+
2018-06-22 Jakub Jelinek <jakub@redhat.com>
PR c++/85662
}
setenv GUALITY_GDB_NAME "$guality_gdb_name"
}
+report_gdb [exec which $::env(GUALITY_GDB_NAME)] [info script]
if {[check_guality "
#include \"$srcdir/$subdir/guality.h\"
}
setenv GUALITY_GDB_NAME "$guality_gdb_name"
}
+report_gdb [exec which $::env(GUALITY_GDB_NAME)] [info script]
if {[check_guality "
#include \"$srcdir/$subdir/guality.h\"
}
setenv GUALITY_GDB_NAME "$guality_gdb_name"
}
+report_gdb [exec which $::env(GUALITY_GDB_NAME)] [info script]
gfortran-dg-runtest [lsort [glob $srcdir/$subdir/*.\[fF\]{,90,95,03,08} ]] "" ""
file delete $cmd_file
return
}
+
+# Report the gdb path and version log the .log file
+# Argument 0 is the gdb path
+# Argument 1 is the location where gdb is used
+#
+proc report_gdb { gdb loc } {
+ send_log "gdb used in $loc: $gdb\n"
+ set gdb_version [exec $gdb -v]
+ send_log "gdb used in $loc: version:\n---\n$gdb_version\n---\n"
+}