2018-06-25 Tom de Vries <tdevries@suse.de>
* lib/gcc-gdb-test.exp (report_gdb): Handle gdb -v failure.
From-SVN: r262021
+2018-06-25 Tom de Vries <tdevries@suse.de>
+
+ * lib/gcc-gdb-test.exp (report_gdb): Handle gdb -v failure.
+
2018-06-25 Jakub Jelinek <jakub@redhat.com>
PR target/84786
}
set gdb [exec which $gdb]
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"
+
+ send_log "gdb used in $loc: "
+ if { [catch { exec $gdb -v } gdb_version] } {
+ send_log "getting version failed:\n"
+ } else {
+ send_log "version:\n"
+ }
+ send_log -- "---\n$gdb_version\n---\n"
}