From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13265 invoked by alias); 1 Nov 2011 16:23:01 -0000 Received: (qmail 13212 invoked by uid 22791); 1 Nov 2011 16:22:59 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 01 Nov 2011 16:22:43 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LTZ00100P4ISX00@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Tue, 01 Nov 2011 18:22:41 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.128.216]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LTZ0013KPHRSK20@a-mtaout21.012.net.il>; Tue, 01 Nov 2011 18:22:40 +0200 (IST) Date: Tue, 01 Nov 2011 16:23:00 -0000 From: Eli Zaretskii Subject: Re: [patch] `info proc ' completion [Re: [PATCH] Implement new `info core mappings' command] In-reply-to: <20111101115405.GA15861@host1.jankratochvil.net> To: Jan Kratochvil Cc: pedro@codesourcery.com, gdb-patches@sourceware.org, sergiodj@redhat.com Reply-to: Eli Zaretskii Message-id: <83pqhbn771.fsf@gnu.org> References: <20111031070012.GA32610@host1.jankratochvil.net> <201110311220.53564.pedro@codesourcery.com> <20111101115405.GA15861@host1.jankratochvil.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: 2011-11/txt/msg00014.txt.bz2 > Date: Tue, 1 Nov 2011 12:54:05 +0100 > From: Jan Kratochvil > Cc: gdb-patches@sourceware.org, Sergio Durigan Junior > > -Specify any process id, or use the program being debugged by default.\n\ > -Specify any of the following keywords for detailed info:\n\ > - mappings -- list of mapped memory regions.\n\ > - stat -- list a bunch of random process info.\n\ > - status -- list a different bunch of random process info.\n\ > - all -- list all available /proc info.")); > +Specify any process id, or use the program being debugged by default."), > + &info_proc_cmdlist, "info proc ", > + 1/*allow-unknown*/, &infolist); > + > + add_cmd ("mappings", class_info, linux_nat_info_proc_cmd_mappings, _("\ > +List of mapped memory regions."), > + &info_proc_cmdlist); > + > + add_cmd ("stat", class_info, linux_nat_info_proc_cmd_stat, _("\ > +List a bunch of random process info."), > + &info_proc_cmdlist); > + > + add_cmd ("status", class_info, linux_nat_info_proc_cmd_status, _("\ > +List a different bunch of random process info."), > + &info_proc_cmdlist); > + > + add_cmd ("cwd", class_info, linux_nat_info_proc_cmd_cwd, _("\ > +List a different bunch of random process info."), > + &info_proc_cmdlist); > + > + add_cmd ("cmdline", class_info, linux_nat_info_proc_cmd_cmdline, _("\ > +List a different bunch of random process info."), > + &info_proc_cmdlist); > + > + add_cmd ("exe", class_info, linux_nat_info_proc_cmd_exe, _("\ > +List a different bunch of random process info."), I wonder if we could clean up this mess with 5 "different bunches of info", while we are at that.