From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21150 invoked by alias); 6 Dec 2011 18:45:52 -0000 Received: (qmail 21124 invoked by uid 22791); 6 Dec 2011 18:45:52 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Dec 2011 18:45:37 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RY01I-0005ZK-TI from pedro_alves@mentor.com ; Tue, 06 Dec 2011 10:45:37 -0800 Received: from scottsdale.localnet ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 6 Dec 2011 18:45:34 +0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [PATCH] Add the "-info-os" command to MI Date: Tue, 06 Dec 2011 18:53:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-13-generic; KDE/4.7.2; x86_64; ; ) Cc: Kwok Cheung Yeung , Eli Zaretskii References: <4E970915.8000207@codesourcery.com> <83wrc827lz.fsf@gnu.org> <4ECD83B2.2070909@codesourcery.com> In-Reply-To: <4ECD83B2.2070909@codesourcery.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201112061845.33688.pedro@codesourcery.com> 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: 2011-12/txt/msg00189.txt.bz2 On Wednesday 23 November 2011 23:37:22, Kwok Cheung Yeung wrote: > >> +@smallexample > >> +(gdb) > >> +-info-os > >> +^done,OSDataTable=@{nr_rows="9",nr_cols="2",hdr=[@{width="10",alignment= > >> +"-1",col_name="col0",colhdr="Type"@},@{width="10",alignment="-1",col_nam > >> +e="col1",colhdr="Description"@}],body=[item=@{col0="processes",col1="Lis > >> +ting of all processes"@},item=@{col0="procgroups",col1="Listing of all p > >> +rocess groups"@},item=@{col0="threads",col1="Listing of all threads"@},i > >> +tem=@{col0="files",col1="Listing of all file descriptors"@},item=@{col0= > >> +"sockets",col1="Listing of all internet-domain sockets"@},item=@{col0="s > >> +hm",col1="Listing of all shared-memory regions"@},item=@{col0="semaphore > >> +s",col1="Listing of all semaphores"@},item=@{col0="msg",col1="Listing of > >> + all message queues"@},item=@{col0="modules",col1="Listing of all loaded > >> + kernel modules"@}]@} > > > > The lines here are broken in arbitrary places, which will look > > illegible in the manual. Please reformat the example so that the > > output could be readable by humans. > > > > Well, one could argue that MI wasn't meant to be easily human-readable :-) That > output is exactly how it would look if the command were issued by a human, and > it might be confusing if a user issues the command and doesn't get the nicely > formatted output shown in the manual. I'm happy to make the changes if you think > that is not an issue though. Yes, that is not an issue. We have other examples of a putting breaks in place to make it more readable. See e.g., the example of "-list-thread-groups". -- Pedro Alves