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.
This commit is contained in:
Sandra Loosemore 2020-06-20 17:23:53 -07:00
parent bfbf16ce8b
commit 4d91c2a467
2 changed files with 7 additions and 1 deletions

View File

@ -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>

View File

@ -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}