From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30595 invoked by alias); 1 Jul 2010 23:21:20 -0000 Received: (qmail 30583 invoked by uid 22791); 1 Jul 2010 23:21:19 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from az33egw02.freescale.net (HELO az33egw02.freescale.net) (192.88.158.103) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 01 Jul 2010 23:21:14 +0000 Received: from de01smr01.freescale.net (de01smr01.freescale.net [10.208.0.31]) by az33egw02.freescale.net (8.14.3/az33egw02) with ESMTP id o61NKo97026187 for ; Thu, 1 Jul 2010 16:21:00 -0700 (MST) Received: from lds03-tx32 (lds03-tx32.am.freescale.net [10.83.20.63]) by de01smr01.freescale.net (8.13.1/8.13.0) with ESMTP id o61NWT1F022817 for ; Thu, 1 Jul 2010 18:32:30 -0500 (CDT) Date: Thu, 01 Jul 2010 23:21:00 -0000 From: "Anmol P. Paralkar" To: gdb-patches@sourceware.org Subject: Fix "maint time" command documentation. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: 2010-07/txt/msg00031.txt.bz2 Hello, The documentation for the "maint time" command does not mention the units of time. Also, there are a couple of typos in there. I have attempted to fix these in the following patch; please let me know if we could word/punctuate this better and I'll be happy to re-spin. I rebuilt gdb.info and visually inspected the generated gdb.info Thank you, Anmol. Index: ChangeLog =================================================================== RCS file: /cvs/src/src/gdb/doc/ChangeLog,v retrieving revision 1.1083 diff -c -p -r1.1083 ChangeLog *** ChangeLog 1 Jul 2010 17:40:04 -0000 1.1083 --- ChangeLog 1 Jul 2010 23:12:00 -0000 *************** *** 1,3 **** --- 1,8 ---- + 2010-07-01 Anmol P. Paralkar + + * gdb.texinfo (Maintenance Commands): Mention units of time + and fix a couple of typos in documentation for command "maint time". + 2010-07-01 Pedro Alves * gdb.texinfo (Create and Delete Tracepoints): Add more index Index: gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.737 diff -c -p -r1.737 gdb.texinfo *** gdb.texinfo 1 Jul 2010 17:40:04 -0000 1.737 --- gdb.texinfo 1 Jul 2010 23:12:01 -0000 *************** switch (@pxref{Mode Options}). *** 30573,30583 **** @item maint time Control whether to display the execution time for each command. If set to a nonzero value, @value{GDBN} will display how much time it ! took to execute each command, following the command's own output. ! The time is not printed for the commands that run the target, since there's no mechanism currently to compute how much time was spend ! by @value{GDBN} and how much time was spend by the program been debugged. ! it's not possibly currently This can also be requested by invoking @value{GDBN} with the @option{--statistics} command-line switch (@pxref{Mode Options}). --- 30573,30583 ---- @item maint time Control whether to display the execution time for each command. If set to a nonzero value, @value{GDBN} will display how much time it ! took (in seconds) to execute each command, following the command's own output. ! The time is not printed for the commands that run on the target, since there's no mechanism currently to compute how much time was spend ! by @value{GDBN} and how much time was spend by the program been debugged; ! this is not possible currently. This can also be requested by invoking @value{GDBN} with the @option{--statistics} command-line switch (@pxref{Mode Options}).