From 4d91c2a4677b90802c8d369190927921bf8ee97d Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Jun 21 2020 00:23:53 +0000 Subject: Fix gdb.base/list-missing-source.exp on remote host. 2020-06-20 Sandra Loosemore gdb/testsuite/ * gdb.base/list-missing-source.exp: Correct $srcfile manipulation for remote host. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 36662f9..5ae3ffa 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-06-20 Sandra Loosemore + + * gdb.base/list-missing-source.exp: Correct $srcfile manipulation + for remote host. + 2020-06-19 Sandra Loosemore Hafiz Abid Qadeer diff --git a/gdb/testsuite/gdb.base/list-missing-source.exp b/gdb/testsuite/gdb.base/list-missing-source.exp index e64f42c..72d3922 100644 --- a/gdb/testsuite/gdb.base/list-missing-source.exp +++ b/gdb/testsuite/gdb.base/list-missing-source.exp @@ -29,6 +29,7 @@ main () } } close $fd +set srcfile [remote_download host $srcfile] # Compile the source file. set options "debug" @@ -39,7 +40,7 @@ if { [gdb_compile "${srcfile}" "${binfile}" \ } # Now delete the source file. -file delete $srcfile +remote_file host delete $srcfile # Now start GDB, run to main and try to list the source. clean_restart ${binfile}