From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18710 invoked by alias); 1 Jun 2012 10:10:21 -0000 Received: (qmail 18699 invoked by uid 22791); 1 Jun 2012 10:10:20 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=BAYES_00,KHOP_THREADED,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 01 Jun 2012 10:09:57 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SaOnn-0004kM-7w for gdb-patches@sources.redhat.com; Fri, 01 Jun 2012 12:09:51 +0200 Received: from lvk-gate.cmc.msu.ru ([188.44.42.233]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Jun 2012 12:09:51 +0200 Received: from ghost by lvk-gate.cmc.msu.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Jun 2012 12:09:51 +0200 To: gdb-patches@sources.redhat.com From: Vladimir Prus Subject: Re: [PATCH v2] Add the "-info-os" command to MI Date: Fri, 01 Jun 2012 10:10:00 -0000 Message-ID: References: <4FBC2F40.2010907@earthlink.net> <4FBCC6BE.9010304@redhat.com> <4FBCF671.2080305@earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 In-Reply-To: <4FBCF671.2080305@earthlink.net> 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-06/txt/msg00003.txt.bz2 On 23/05/12 18:38, Stan Shebs wrote: > @{width="10",alignment="-1",col_name="col1",colhdr="Description"@}], > +body=[item=@{col0="processes",col1="Listing of all processes"@}, > + item=@{col0="procgroups",col1="Listing of all process groups"@}, > + item=@{col0="threads",col1="Listing of all threads"@}, > + item=@{col0="files",col1="Listing of all file descriptors"@}, > + item=@{col0="sockets",col1="Listing of all internet-domain sockets"@}, > + item=@{col0="shm",col1="Listing of all shared-memory regions"@}, > + item=@{col0="semaphores",col1="Listing of all semaphores"@}, > + item=@{col0="msg",col1="Listing of all message queues"@}, > + item=@{col0="modules",col1="Listing of all loaded kernel Stan, I am afraid this output is not really good enough. From MI consumer standpoint, we need a clear and concise labels for each resource type. Unfortunately, "shm" is not acceptable at all. "Listing of all shared-memory regions" is unacceptably long. Besides, this would make a good title for a table with output, but not really good title for a menu used to specify what to show. For the record, here's the labels I have to use in actual UI code: ResourceClassContributionItem_0=Processes ResourceClassContributionItem_10=Shared memory regions ResourceClassContributionItem_12=Semaphores ResourceClassContributionItem_14=Message queues ResourceClassContributionItem_16=Kernel modules ResourceClassContributionItem_2=Process groups ResourceClassContributionItem_4=Threads ResourceClassContributionItem_6=Files ResourceClassContributionItem_8=Sockets Could GDB be made to output such labels? Thanks, Volodya