From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21319 invoked by alias); 26 Aug 2009 14:38:17 -0000 Received: (qmail 21303 invoked by uid 22791); 26 Aug 2009 14:38:15 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_37 X-Spam-Check-By: sourceware.org Received: from vtab.com (HELO oden.vtab.com) (62.20.90.195) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 26 Aug 2009 14:38:10 +0000 Received: from oden.vtab.com (oden.vtab.com [127.0.0.1]) by oden.vtab.com (Postfix) with ESMTP id A059126EEFD for ; Wed, 26 Aug 2009 16:38:07 +0200 (CEST) Received: from polhem (unknown [62.20.90.206]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by oden.vtab.com (Postfix) with ESMTP id 61D8526EEDD for ; Wed, 26 Aug 2009 16:38:07 +0200 (CEST) From: "Jakob Engblom" To: Subject: GDB MI Reverse Commands added [2 of 3] Date: Wed, 26 Aug 2009 14:38:00 -0000 Message-ID: <00cf01ca265a$d4110dc0$7c332940$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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/msg00444.txt.bz2 Here are the documentation updates.=20 Changelog: "Added documentation of gdb-MI reverse debugging commands" cvs diff: Diffing gdb/doc Index: gdb/doc/gdb.texinfo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.615 diff -c -p -r1.615 gdb.texinfo *** gdb/doc/gdb.texinfo 6 Aug 2009 23:08:16 -0000=A0=A0=A0=A0=A0=A0 1.615 --- gdb/doc/gdb.texinfo 25 Aug 2009 14:40:16 -0000 *************** other cases. *** 22394,22413 **** =A0 @subsubheading Synopsis =A0 @smallexample !=A0 -exec-continue [--all|--thread-group N] =A0 @end smallexample =A0 Resumes the execution of the inferior program until a breakpoint is ! encountered, or until the inferior exits.=A0 In all-stop mode ! (@pxref{All-Stop Mode}), may resume only one thread, or all threads, ! depending on the value of the @samp{scheduler-locking} variable.=A0 In ! non-stop mode (@pxref{Non-Stop 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.=A0 If ! @samp{--all} is specified, all threads will be resumed.=A0 The ! @samp{--all} option is ignored in all-stop mode.=A0 If the ! @samp{--thread-group} options is specified, then all threads in that ! thread group are resumed. =A0 @subsubheading @value{GDBN} Command --- 22394,22415 ---- =A0 @subsubheading Synopsis =A0 @smallexample !=A0 -exec-continue [--reverse] [--all|--thread-group N] =A0 @end smallexample =A0 Resumes the execution of the inferior program until a breakpoint is ! encountered, or until the inferior exits. If the @samp{--reverse} ! option is specified, resumes the reverse execution of the inferior ! program until a breakpoint is encountered, or until the inferior ! exits.=A0 In all-stop mode (@pxref{All-Stop Mode}), may resume only one ! thread, or all threads, depending on the value of the ! @samp{scheduler-locking} variable.=A0 In non-stop mode (@pxref{Non-Stop ! 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.=A0 If @samp{--all} is ! specified, all threads will be resumed.=A0 The @samp{--all} option is ! ignored in all-stop mode.=A0 If the @samp{--thread-group} options is ! specified, then all threads in that thread group are resumed. =A0 @subsubheading @value{GDBN} Command *************** line=3D"13"@} *** 22433,22443 **** =A0 @subsubheading Synopsis =A0 @smallexample !=A0 -exec-finish =A0 @end smallexample =A0 Resumes the execution of the inferior program until the current =A0 function is exited.=A0 Displays the results returned by the function. =A0 @subsubheading @value{GDBN} Command --- 22435,22448 ---- =A0 @subsubheading Synopsis =A0 @smallexample !=A0 -exec-finish [--reverse] =A0 @end smallexample =A0 Resumes the execution of the inferior program until the current =A0 function is exited.=A0 Displays the results returned by the function. + If the @samp{--reverse} option is specified, resumes the reverse + execution of the inferior program until the point where current + function was called. =A0 @subsubheading @value{GDBN} Command *************** The corresponding @value{GDBN} command i *** 22556,22567 **** =A0 @subsubheading Synopsis =A0 @smallexample !=A0 -exec-next =A0 @end smallexample =A0 Resumes execution of the inferior program, stopping when the beginning =A0 of the next source line is reached. =A0 @subsubheading @value{GDBN} Command =A0 The corresponding @value{GDBN} command is @samp{next}. --- 22561,22578 ---- =A0 @subsubheading Synopsis =A0 @smallexample !=A0 -exec-next [--reverse] =A0 @end smallexample =A0 Resumes execution of the inferior program, stopping when the beginning =A0 of the next source line is reached. + 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. + =A0 @subsubheading @value{GDBN} Command =A0 The corresponding @value{GDBN} command is @samp{next}. *************** The corresponding @value{GDBN} command i *** 22583,22589 **** =A0 @subsubheading Synopsis =A0 @smallexample !=A0 -exec-next-instruction =A0 @end smallexample =A0 Executes one machine instruction.=A0 If the instruction is a function --- 22594,22600 ---- =A0 @subsubheading Synopsis =A0 @smallexample !=A0 -exec-next-instruction [--reverse] =A0 @end smallexample =A0 Executes one machine instruction.=A0 If the instruction is a function *************** call, continues until the function retur *** 22591,22596 **** --- 22602,22613 ---- =A0 instruction in the middle of a source line, the address will be =A0 printed as well. + 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, + it will continue to execute in reverse until the call to that function + (from the current stack frame) is reached. + =A0 @subsubheading @value{GDBN} Command =A0 The corresponding @value{GDBN} command is @samp{nexti}. *************** signal-meaning=3D"Interrupt" *** 22733,22745 **** =A0 @subsubheading Synopsis =A0 @smallexample !=A0 -exec-step =A0 @end smallexample =A0 Resumes execution of the inferior program, stopping when the beginning =A0 of the next source line is reached, if the next source line is not a =A0 function call.=A0 If it is, stop at the first instruction of the called ! function. =A0 @subsubheading @value{GDBN} Command --- 22750,22764 ---- =A0 @subsubheading Synopsis =A0 @smallexample !=A0 -exec-step [--reverse] =A0 @end smallexample =A0 Resumes execution of the inferior program, stopping when the beginning =A0 of the next source line is reached, if the next source line is not a =A0 function call.=A0 If it is, stop at the first instruction of the called ! function. If the @samp{--reverse} option is specified, resumes reverse ! execution of the inferior program, stopping at the beginning of the ! previously executed source line. =A0 @subsubheading @value{GDBN} Command *************** Regular stepping: *** 22777,22786 **** =A0 @subsubheading Synopsis =A0 @smallexample !=A0 -exec-step-instruction =A0 @end smallexample ! Resumes the inferior which executes one machine instruction.=A0 The =A0 output, once @value{GDBN} has stopped, will vary depending on whether =A0 we have stopped in the middle of a source line or not.=A0 In the former =A0 case, the address at which the program stopped will be printed as --- 22796,22807 ---- =A0 @subsubheading Synopsis =A0 @smallexample !=A0 -exec-step-instruction [--reverse] =A0 @end smallexample ! Resumes the inferior which executes one machine instruction. If the ! @samp{--reverse} option is specified, resumes reverse execution of the ! inferior program, stopping at the previously executed instruction. The =A0 output, once @value{GDBN} has stopped, will vary depending on whether =A0 we have stopped in the middle of a source line or not.=A0 In the former =A0 case, the address at which the program stopped will be printed as Best regards, /jakob _______________________________________________________ Jakob Engblom, PhD, Technical Marketing Manager Virtutech=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Direct: +46= 8 690 07 47=A0=A0=A0 Drottningholmsv=E4gen 22=A0=A0=A0=A0=A0 Mobile: +46 709 242 646=A0=A0 11243 Stockholm=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Web:=A0=A0=A0 www.virtu= tech.com=A0 Sweden ________________________________________________________ =A0=20