From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25392 invoked by alias); 8 May 2002 19:11:14 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25362 invoked from network); 8 May 2002 19:11:13 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 8 May 2002 19:11:13 -0000 Received: by fw-cam.cambridge.arm.com; id UAA10767; Wed, 8 May 2002 20:11:11 +0100 (BST) Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xma010509; Wed, 8 May 02 20:10:26 +0100 Received: from cam-mail2.cambridge.arm.com (cam-mail2.cambridge.arm.com [172.16.1.91]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id UAA23775; Wed, 8 May 2002 20:10:26 +0100 (BST) Received: from sun18.cambridge.arm.com (sun18.cambridge.arm.com [172.16.2.18]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id UAA08357; Wed, 8 May 2002 20:10:26 +0100 (BST) Message-Id: <200205081910.UAA08357@cam-mail2.cambridge.arm.com> To: Michael Snyder cc: Richard.Earnshaw@arm.com, Michael Snyder , gdb-patches@sources.redhat.com, rearnsha@arm.com Reply-To: Richard.Earnshaw@arm.com Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: Re: [RFA] Disable "remote_rdp_can_run" In-reply-to: Your message of "Wed, 08 May 2002 11:22:32 PDT." <3CD96CE8.C7066D8A@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 08 May 2002 12:11:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-05/txt/msg00219.txt.bz2 > Richard Earnshaw wrote: > > > > > > > > Happened across this. It's not right. > > > > > > With this in place, if you have not attached to your rdp target > > > (ie. by saying "target rdp"), but you instead just say "run", > > > gdb will attempt to use the rdp target, which has not at this > > > point been opened or initialized. This is not the right way > > > to make a remote target accept the "run" command. > > > > > > 2002-05-02 Michael Snyder > > > > > > * remote-rdp.c (remote_rdp_can_run): Return false. This is > > > not a good work-around for making a remote target accept 'run'. > > > > > > > I'm not sure I understand this. Shouldn't remote_rdp_can_run return 1 > > once the target has been attached? If not, then I think the whole > > function should be killed (so that we pick up the default behaviour). > > Actually, I agree with the second statement (it sound be killed). > If you want to have it return true once the target is attached, > you need some way of detecting that state (perhaps a global). > I didn't bother to do that, because I don't like the idea. > > This is the only remote target that tries to do this. > I'd be glad to yank it if you say the word... "The word" R.