[patch] Adding 'reverse' to -list-target-features
Marc Khouzam
marc.khouzam@ericsson.com
Wed Sep 1 16:14:00 GMT 2010
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 <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:08:38 -0000
@@ -29030,6 +29030,9 @@
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.
+
@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:08:38 -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;
More information about the Gdb-patches
mailing list