From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29385 invoked by alias); 14 Mar 2014 12:16:59 -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 29370 invoked by uid 89); 14 Mar 2014 12:16:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham 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 ESMTP; Fri, 14 Mar 2014 12:16:57 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s2ECGtOG022896 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 14 Mar 2014 08:16:55 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s2ECGqmH004802; Fri, 14 Mar 2014 08:16:54 -0400 Message-ID: <5322F334.7070202@redhat.com> Date: Fri, 14 Mar 2014 12:16:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Eli Zaretskii CC: gdb-patches@sourceware.org Subject: Re: [RFC PATCH] Allow disabling the default run target. References: <1394737368-29334-1-git-send-email-palves@redhat.com> <83y50dn9aj.fsf@gnu.org> <5322E2B8.8080808@redhat.com> <83d2hpc88v.fsf@gnu.org> In-Reply-To: <83d2hpc88v.fsf@gnu.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2014-03/txt/msg00330.txt.bz2 On 03/14/2014 11:47 AM, Eli Zaretskii wrote: >> Date: Fri, 14 Mar 2014 11:06:32 +0000 >> From: Pedro Alves >> CC: gdb-patches@sourceware.org >> >> On 03/13/2014 08:16 PM, Eli Zaretskii wrote: >>>> From: Pedro Alves >>>> Date: Thu, 13 Mar 2014 19:02:48 +0000 >>>> >>>> Wonder what people think of this. >>> >>> FWIW, the names of commands and options confused me a lot. >> >> Thanks Eli. I battled with several different namings, and >> all the others seemed worse. :-) But I do think we should >> try to come up with something better -- always a bad sign >> to me when a GDB maintainer is confused. Probably users >> will be even more. >> >> Can you point out specifically what confused you? > > "target child" itself, and then the apparent disconnect between that > and the option name, although NEWS says that "'target child' [...] > connects to the default run target". Also, the fact that setting > default-run-target to OFF actually _enables_ something (AFAIU). No, it disables the fallback to the default run target if no target is pushed yet. >> I've been pondering renaming "target child" to something else. >> "child" is a little lie in case of "attach". >> By best suggestion so far is "target native". > > "target native" is a much better name, IMO. OK, I'll see if others have comments, and then propose that with a patch. >> I'd suggest just removing go32_open, and letting inf-child.c's >> to_open handle pushing the target. > > Fine with me. I don't think "target djgpp" was ever important anyway, > I think it's there mostly for completeness. OK. > Maybe we should take a step back and discuss why this fallback is > useful. Is it only so native debugging works by default without a > need to say "target native"? Yes. It's what makes $ gdb program (gdb) run Just Work. -- Pedro Alves