From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32400 invoked by alias); 26 Aug 2009 17:37:19 -0000 Received: (qmail 32328 invoked by uid 22791); 26 Aug 2009 17:37:18 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout3.012.net.il (HELO mtaout3.012.net.il) (84.95.2.7) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 26 Aug 2009 17:37:12 +0000 Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KOZ00400V5O5O00@i_mtaout3.012.net.il> for gdb-patches@sourceware.org; Wed, 26 Aug 2009 20:37:09 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.144.38]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KOZ004AKVLV9P10@i_mtaout3.012.net.il>; Wed, 26 Aug 2009 20:37:09 +0300 (IDT) Date: Wed, 26 Aug 2009 17:38:00 -0000 From: Eli Zaretskii Subject: Re: GDB MI Reverse Commands added [2 of 3] In-reply-to: <00cf01ca265a$d4110dc0$7c332940$@com> To: Jakob Engblom Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83tyzucw8p.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8BIT References: <00cf01ca265a$d4110dc0$7c332940$@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: 2009-08/txt/msg00453.txt.bz2 > From: "Jakob Engblom" > Date: Wed, 26 Aug 2009 16:38:07 +0200 > > Here are the documentation updates. Thanks. I have a few comments: > Changelog: "Added documentation of gdb-MI reverse debugging commands" Please format the log entries according to examples you see in gdb/doc/ChangeLog. >   Resumes the execution of the inferior program until a breakpoint is > ! encountered, or until the inferior exits. If the @samp{--reverse} ^^ Two spaces between sentences, please (here and elsewhere). > ! option is specified, resumes the reverse execution of the inferior > ! program until a breakpoint is encountered, or until the inferior > ! exits. How can you exit in reverse? I think you can only get to the beginning of `main', no? > ! Mode}), if the @samp{--all} is not specified, only the thread > ! specified with the @samp{--thread} option (or current thread, if no > ! @samp{--thread} is provided) is resumed.  If @samp{--all} is What `--thread' option are you talking about here? There was no such option in the "Synopsis" part above. > + If the @samp{--reverse} option is specified, resumes reverse execution > + of the inferior program, stopping at the beginning of the previous > + source line. Starting from the first line of a function, the command > + will take you back to the caller of that function, before the function > + was called. I needed to read the last sentence several times before its meaning hit me. Suggest to rephrase thusly: If you issue this command on the first line of a function, it will take you back to the caller of that function, to the source line where the function was called. > + If the @samp{--reverse} option is specified, resumes reverse execution > + of the inferior program, stopping at the previous instruction. If the > + previously executed instruction was a return from another instruction, ^^^^^^^^^^^^^^^^^^^ "another instruction" or "another function"? > + it will continue to execute in reverse until the call to that function > + (from the current stack frame) is reached.