diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2020-06-20 17:23:53 -0700 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2020-06-20 17:23:53 -0700 |
commit | 4d91c2a4677b90802c8d369190927921bf8ee97d (patch) | |
tree | af0640c403257831f5c916ebb6a2f2351c7f163e | |
parent | bfbf16ce8b23d2184d43e92a1c80be73081fb64f (diff) | |
download | gdb-4d91c2a4677b90802c8d369190927921bf8ee97d.zip gdb-4d91c2a4677b90802c8d369190927921bf8ee97d.tar.gz gdb-4d91c2a4677b90802c8d369190927921bf8ee97d.tar.bz2 |
Fix gdb.base/list-missing-source.exp on remote host.
2020-06-20 Sandra Loosemore <sandra@codesourcery.com>
gdb/testsuite/
* gdb.base/list-missing-source.exp: Correct $srcfile manipulation
for remote host.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/list-missing-source.exp | 3 |
2 files changed, 7 insertions, 1 deletions
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 <sandra@codesourcery.com> + + * gdb.base/list-missing-source.exp: Correct $srcfile manipulation + for remote host. + 2020-06-19 Sandra Loosemore <sandra@codesourcery.com> Hafiz Abid Qadeer <abidh@codesourcery.com> 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} |