Re: [PATCH] Copy .py files to remote host

Doug Evans
2014-08-13T05:52:45Z

On Tue, Aug 12, 2014 at 10:50 PM, Doug Evans <dje@google.com> wrote:
> On Tue, Aug 12, 2014 at 8:09 PM, Doug Evans <dje@google.com> wrote:
>> On Tue, Aug 12, 2014 at 5:52 PM, Yao Qi <yao@codesourcery.com> wrote:
>>> On 08/13/2014 01:15 AM, Doug Evans wrote:
>>>> I still have an outstanding question on this topic,
>>>> and before this gets checked in I'd like to get it resolved.
>>>> Do we delete other files downloaded to the remote target?

Oops, I meant remote host here.
Bleah, sorry about that.

>>> Yes, at least shared libs downloaded to target are cleaned up.
>>> In lib/gdb.exp, there is a list cleanfiles, to record the files
>>> downloaded to target, and in gdb_finish, remove files in this list.
>>
>> Yeah, we keep track of files downloaded to the target.
>> Can we do something similar for the host?
>
> Though I should also say every time I've used a system that tries to
> clean up after itself too much I generally grow to dislike it -
> debugging failures gets harder because the files are gone.
> If possible, I'd rather do a cleanup of the previous run beforehand
> and just leave the results lying around afterwards (and often it's
> easy because something simple like rm -rf $something is all that's
> needed).