From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13134 invoked by alias); 10 May 2012 21:07:23 -0000 Received: (qmail 13119 invoked by uid 22791); 10 May 2012 21:07:22 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from elasmtp-curtail.atl.sa.earthlink.net (HELO elasmtp-curtail.atl.sa.earthlink.net) (209.86.89.64) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 May 2012 21:07:06 +0000 Received: from [68.96.200.16] (helo=macbook2.local) by elasmtp-curtail.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1SSaZl-0007aN-04 for gdb-patches@sourceware.org; Thu, 10 May 2012 17:07:05 -0400 Message-ID: <4FAC2DF8.9020209@earthlink.net> Date: Thu, 10 May 2012 21:07:00 -0000 From: Stan Shebs User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: 'info os' additions again References: <4FA9A2FA.3090307@earthlink.net> <83k40m0xqt.fsf@gnu.org> <4FAADEBE.7010908@earthlink.net> <83pqaczk9u.fsf@gnu.org> <4FABB2DC.6030905@redhat.com> <4FAC051C.1090208@earthlink.net> <4FAC065C.4030901@redhat.com> <4FAC0C15.8070009@earthlink.net> <4FAC0FD2.4080307@redhat.com> In-Reply-To: <4FAC0FD2.4080307@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: ae6f8838ff913eba0cc1426638a40ef67e972de0d01da940a50cf9b3ae04b126ef56d3b3b108ced8350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-IsSubscribed: yes 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 X-SW-Source: 2012-05/txt/msg00390.txt.bz2 On 5/10/12 11:58 AM, Pedro Alves wrote: > On 05/10/2012 07:42 PM, Stan Shebs wrote: > >> On 5/10/12 11:18 AM, Pedro Alves wrote: >>> On 05/10/2012 07:12 PM, Stan Shebs wrote: >>> >>>> They're waiting for the GDB bits (including the MI patch which is in my queue) to become available, which is why I want to get this resolved one way or another. It's a little ironic that Eclipse folks, who don't care about command-line syntax, are being blocked on a discussion of command-line syntax. :-) >>>> >>>> If everybody is tired of the issue, I'll just make a decision; things can always be changed later. >>> What kind of decision? What would exactly be the alternative? >>> >> To pick one of "info os" and "info linux". I don't think there are many other credible alternatives; the subcommand should be a single >> short word, with the rest of the work to be done by subsubcommands and/or arguments. "info unix" or "info posix" would qualify, but >> historically we've tended to avoid using those terms in GDB commands, and one could argue that they have the >> same vagueness/overloading issue that "os" does. > Frankly, this reads as a misunderstanding of all whole thing to me. Just > picking out a name in isolation of the grand scheme doesn't make sense. > > How would "info linux" be implemented? How would be backend know you're > requesting linux specific data? What would make "info linux" against a > Windows target return error or nothing, instead of returning Windows > specific tables? What's the point in making "linux" be in the command > name if the frontend is completely agnostic, by design, to what is beneath > the command? > > IOW, renaming the command means implementing something completely different. > Well yes, of course the implementation would be completely different. The original objections to the patch were to the user interface, so we need to agree on that first. In practice, an "info linux" would be installed as a target-specific command a la "info spu" and the like, and may or may not pass through generic table machinery before getting down to the linux-specific types. It would probably be messier than the current design I think, but not excessively so. Stan