From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4032 invoked by alias); 13 Aug 2014 05:50:47 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 4005 invoked by uid 89); 13 Aug 2014 05:50:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-vc0-f173.google.com Received: from mail-vc0-f173.google.com (HELO mail-vc0-f173.google.com) (209.85.220.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 13 Aug 2014 05:50:38 +0000 Received: by mail-vc0-f173.google.com with SMTP id hy10so14460906vcb.18 for ; Tue, 12 Aug 2014 22:50:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=yYNQYj8kcjDWTVMGwhYNvxj5ovy2zQgmOcQfjdXIUCo=; b=bFIVuxpiJ7lF7zE0IMupcbgvlcM+DdIXHR/2JyIS8EZpUAezjaVUJJZwcrs0hUr7xc Io8lRKLqZf7Qg5A1p4J40zisw3WpLLcK7JaKY+KzrtJmEhizZoSLgNih2s1RhVXdBopW zUWP7G6exXUDXXkm/dwjwquFKiAHbIRXpImZYax8EudsDs12JCAIQ/Z3lUnfoFG+sfDw EROUZ6hDRXgc9aIiC9hMrgTfx9QU/n/iA8y1yXV6JS30mez25SbBeJ8I/I6tIBdyA4Pl c0IL28HTidd5+mOneBaYsPl3u4MF4MCcxmbiOvqFVGIhfHY1xZZza9sGZMF2mAnVfGZm GZJw== X-Gm-Message-State: ALoCoQmG/0asJwfL4mF+VjZAvKKo64uyg1h8zqjk8ll+mXuLaaOsCF+IlbUw+QRqqH1ZNmKtWck/ MIME-Version: 1.0 X-Received: by 10.220.2.136 with SMTP id 8mr1811916vcj.17.1407909036051; Tue, 12 Aug 2014 22:50:36 -0700 (PDT) Received: by 10.52.136.203 with HTTP; Tue, 12 Aug 2014 22:50:35 -0700 (PDT) In-Reply-To: References: <1407849103-16521-1-git-send-email-yao@codesourcery.com> <21482.19388.251662.22760@ruffy.mtv.corp.google.com> <53EAB6C4.40406@codesourcery.com> Date: Wed, 13 Aug 2014 05:50:00 -0000 Message-ID: Subject: Re: [PATCH] Copy .py files to remote host From: Doug Evans To: Yao Qi Cc: gdb-patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00211.txt.bz2 On Tue, Aug 12, 2014 at 8:09 PM, Doug Evans wrote: > On Tue, Aug 12, 2014 at 5:52 PM, Yao Qi 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? >> >> 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).