This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [patch] Adding 'reverse' to -list-target-features
- From: Marc Khouzam <marc dot khouzam at ericsson dot com>
- To: "'Eli Zaretskii'" <eliz at gnu dot org>
- Cc: "'gdb-patches at sourceware dot org'" <gdb-patches at sourceware dot org>, "'pedro at codesourcery dot com'" <pedro at codesourcery dot com>, "'msnyder at vmware dot com'" <msnyder at vmware dot com>
- Date: Wed, 1 Sep 2010 12:44:05 -0400
- Subject: RE: [patch] Adding 'reverse' to -list-target-features
- References: <F7CE05678329534C957159168FA70DEC57170353EB@EUSAACMS0703.eamcs.ericsson.se> <837hj5ju2e.fsf@gnu.org>
> -----Original Message-----
> From: Eli Zaretskii [mailto:eliz@gnu.org]
> Sent: Wednesday, September 01, 2010 12:41 PM
> To: Marc Khouzam
> Cc: gdb-patches@sourceware.org; pedro@codesourcery.com;
> msnyder@vmware.com
> Subject: Re: [patch] Adding 'reverse' to -list-target-features
>
> > From: Marc Khouzam <marc.khouzam@ericsson.com>
> > Date: Wed, 1 Sep 2010 12:13:32 -0400
> >
> > +@item reverse
> > +Indicates that the target is capable of reverse execution.
>
> This is okay, but please add a cross-reference to where reverse
> execution is described.
Updated the docs:
2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
* mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
as a feature reported by -list-target-features.
2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
* gdb.texinfo (GDB/MI Miscellaneous Commands): Document new
feature `reverse' output by -list-target-features.
Index: gdb/doc/gdb.texinfo
===================================================================
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:42:07 -0000
@@ -29030,6 +29030,10 @@
execution, which means that @value{GDBN} will accept further commands
while the target is running.
+@item reverse
+Indicates that the target is capable of reverse execution.
+@xref{Reverse Execution}, for more information.
+
@end table
@subheading The @code{-list-thread-groups} Command
Index: gdb/mi/mi-main.c
===================================================================
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:42:07 -0000
@@ -1700,6 +1700,8 @@
cleanup = make_cleanup_ui_out_list_begin_end (uiout, "features");
if (target_can_async_p ())
ui_out_field_string (uiout, NULL, "async");
+ if (target_can_execute_reverse)
+ ui_out_field_string (uiout, NULL, "reverse");
do_cleanups (cleanup);
return;