From 623f8c6b88161ea272137a5d6f5df8aada2e1656 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 27 Mar 2023 13:58:10 +0200 Subject: [gdb/testsuite] Fix gdb.dwarf2/gdb-index-cxx.exp for remote host Fix test-case gdb.dwarf2/gdb-index-cxx.exp for remote host using host_standard_output_file. Tested on x86_64-linux. --- gdb/testsuite/lib/gdb.exp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/testsuite/lib/gdb.exp') diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 39ed5ad..14ce39e 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -6414,6 +6414,9 @@ proc host_standard_output_file { basename } { if { [is_remote host] } { set remotedir [board_info host remotedir] if { $remotedir == "" } { + if { $basename == "" } { + return "." + } return $basename } else { return [join [list $remotedir $basename] "/"] -- cgit v1.1