From: Sandra Loosemore Date: Sun, 21 Jun 2020 00:23:53 +0000 (-0700) Subject: Fix gdb.base/list-missing-source.exp on remote host. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d91c2a4677b90802c8d369190927921bf8ee97d;p=binutils-gdb.git 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 36662f910b8..5ae3ffa0670 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 e64f42c56bf..72d3922afc2 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}