From 4d91c2a4677b90802c8d369190927921bf8ee97d Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Sat, 20 Jun 2020 17:23:53 -0700 Subject: [PATCH] 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. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/list-missing-source.exp | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 36662f910b..5ae3ffa067 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 e64f42c56b..72d3922afc 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} -- 2.34.1