This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdbserver-base.exp: Copy file to standard output directory in ${board}_download
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>, gdb-patches at sourceware dot org
- Cc: qiyaoltc at gmail dot com
- Date: Tue, 12 Apr 2016 19:08:39 +0100
- Subject: Re: [PATCH] gdbserver-base.exp: Copy file to standard output directory in ${board}_download
- Authentication-results: sourceware.org; auth=none
- References: <1460483287-23953-1-git-send-email-simon dot marchi at ericsson dot com>
On 04/12/2016 06:48 PM, Simon Marchi wrote:
> proc ${board}_download { board host dest } {
> + file copy -force $host [standard_output_file $dest]
> return $host
> }
I think this should be:
set dest [standard_output_file $dest]
file copy -force $host $dest
return $dest
Don't we need to consider the case of $dest being an absolute path?
Thanks,
Pedro Alves