From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12431 invoked by alias); 1 Sep 2010 16:14:20 -0000 Received: (qmail 12398 invoked by uid 22791); 1 Sep 2010 16:14:16 -0000 X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_00,RCVD_ILLEGAL_IP X-Spam-Check-By: sourceware.org Received: from imr4.ericy.com (HELO imr4.ericy.com) (198.24.6.8) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Sep 2010 16:13:45 +0000 Received: from eusaamw0712.eamcs.ericsson.se ([147.117.20.181]) by imr4.ericy.com (8.14.3/8.14.3/Debian-9.1ubuntu1) with ESMTP id o81GLCKW027878; Wed, 1 Sep 2010 11:21:14 -0500 Received: from EUSAACMS0703.eamcs.ericsson.se ([169.254.1.134]) by eusaamw0712.eamcs.ericsson.se ([147.117.20.181]) with mapi; Wed, 1 Sep 2010 12:13:34 -0400 From: Marc Khouzam To: "'gdb-patches@sourceware.org'" , "'Pedro Alves'" , "'Michael Snyder'" Date: Wed, 01 Sep 2010 16:14:00 -0000 Subject: [patch] Adding 'reverse' to -list-target-features Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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-09/txt/msg00014.txt.bz2 Hi, as was discussed in http://sourceware.org/ml/gdb/2010-08/msg00187.html here is patch to add 'reverse' to the output of -list-target-features There are small MI changes and small doc changes. No regressions. Thanks Marc 2010-09-01 Marc Khouzam * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse' as a feature reported by -list-target-features. 2010-09-01 Marc Khouzam * gdb.texinfo (GDB/MI Miscellaneous Commands): Document new feature `reverse' output by -list-target-features. 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.761 diff -u -r1.761 gdb.texinfo --- gdb/doc/gdb.texinfo 31 Aug 2010 14:45:41 -0000 1.761 +++ gdb/doc/gdb.texinfo 1 Sep 2010 16:08:38 -0000 @@ -29030,6 +29030,9 @@ execution, which means that @value{GDBN} will accept further commands while the target is running. =20 +@item reverse +Indicates that the target is capable of reverse execution. + @end table =20 @subheading The @code{-list-thread-groups} Command Index: gdb/mi/mi-main.c =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/mi/mi-main.c,v retrieving revision 1.180 diff -u -r1.180 mi-main.c --- gdb/mi/mi-main.c 13 Aug 2010 13:22:44 -0000 1.180 +++ gdb/mi/mi-main.c 1 Sep 2010 16:08:38 -0000 @@ -1700,6 +1700,8 @@ cleanup =3D make_cleanup_ui_out_list_begin_end (uiout, "features");= =20=20=20=20=20=20 if (target_can_async_p ()) ui_out_field_string (uiout, NULL, "async"); + if (target_can_execute_reverse) + ui_out_field_string (uiout, NULL, "reverse"); =20=20=20=20=20=20=20 do_cleanups (cleanup); return; =20 =20