This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gdbserver-base.exp: Copy file to standard output directory in ${board}_download


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]