From f75d858b7cb8240de60f8cff95902139453bcd40 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Wed, 1 Sep 2010 19:03:54 +0000 Subject: [PATCH] * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse' as a feature reported by -list-target-features. * gdb.texinfo (GDB/MI Miscellaneous Commands): Document new feature `reverse' output by -list-target-features. --- gdb/ChangeLog | 5 +++++ gdb/doc/ChangeLog | 5 +++++ gdb/doc/gdb.texinfo | 4 ++++ gdb/mi/mi-main.c | 2 ++ 4 files changed, 16 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 39f997f30c..a1b097acb6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +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 Joel Brobecker * features/Makefile (WHICH): Add rs6000/powerpc-32. diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 368e76362e..e892e3965c 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2010-09-01 Marc Khouzam + + * gdb.texinfo (GDB/MI Miscellaneous Commands): Document new + feature `reverse' output by -list-target-features. + 2010-08-31 H.J. Lu * gdb.texinfo (i386 Features): Remove an extra "@item". diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index f0b06ef767..36552e23e0 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -29030,6 +29030,10 @@ Indicates that the target is capable of asynchronous command 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 diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 8e84421d08..49e913e96a 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -1700,6 +1700,8 @@ mi_cmd_list_target_features (char *command, char **argv, int argc) 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;