From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106683 invoked by alias); 15 May 2015 09:02:22 -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 106673 invoked by uid 89); 15 May 2015 09:02:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 15 May 2015 09:02:16 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 887968E7A4 for ; Fri, 15 May 2015 09:02:14 +0000 (UTC) Received: from blade.nx (ovpn-116-66.ams2.redhat.com [10.36.116.66]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t4F92Dma007361; Fri, 15 May 2015 05:02:13 -0400 Received: by blade.nx (Postfix, from userid 1000) id 1114B26404D; Fri, 15 May 2015 10:02:12 +0100 (BST) Date: Fri, 15 May 2015 09:02:00 -0000 From: Gary Benson To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Move vgdb special case into remote_filesystem_is_local Message-ID: <20150515090211.GA13085@blade.nx> References: <1430146276-15606-1-git-send-email-gbenson@redhat.com> <55547C8B.5050000@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55547C8B.5050000@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00377.txt.bz2 Pedro Alves wrote: > On 04/27/2015 03:51 PM, Gary Benson wrote: > > Valgrind GDB (vgdb) presents itself as a remote target but works > > on the local filesystem. gdb_bfd_open contained a special case > > to make vgdb work with "target:" sysroots, but the implementation > > meant that GDB would fall back to the local filesystem if *any* > > to_fileio_open method failed with ENOSYS for *any* reason. > > Can you give an example target where we'd want this to behave > differently? > > E.g,. what should happen with "target sim" ? I don't understand what you're asking. "target sim" doesn't use remote_filesystem_is_local, (to_filesystem_is_local for sim is the default, tdefault_filesystem_is_local, which returns 1 always). > > This commit moves the vgdb special case to > > remote_filesystem_is_local to allow the fallback to be restricted > > only to the specific case that remote file transfer is > > unsupported. This commit also adds a warning which is displayed > > the first time the fallback is used. Thanks, Gary -- http://gbenson.net/