This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RFA: add breakpoint-notifications feature to MI
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 16 Jun 2011 11:53:18 -0600
- Subject: RFA: add breakpoint-notifications feature to MI
This needs a doc review.
Andrà PÃnitz pointed out that it would be handy for MI users if
-list-features mentioned the breakpoint notification feature that went
in recently.
This patch implements the suggestion -- he wrote the patch, I added some
documentation.
Built and regtested by the buildbot.
Ok?
Tom
2011-06-16 Andrà PÃnitz <andre.poenitz@nokia.com>
* mi/mi-main.c (mi_cmd_list_features): Emit
breakpoint-notifications.
2011-06-16 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (GDB/MI Miscellaneous Commands): Document
breakpoint-notifications feature.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 3a705c2..21f1374 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -30066,6 +30066,9 @@ Indicates presence of the @code{-thread-info} command.
@item data-read-memory-bytes
Indicates presense of the @code{-data-read-memory-bytes} and the
@code{-data-write-memory-bytes} commands.
+@item breakpoint-notifications
+Indicates that changes to breakpoints and breakpoints created via the
+CLI will be announced via async records.
@end table
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index ca62a30..7592a74 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1708,6 +1708,7 @@ mi_cmd_list_features (char *command, char **argv, int argc)
ui_out_field_string (uiout, NULL, "pending-breakpoints");
ui_out_field_string (uiout, NULL, "thread-info");
ui_out_field_string (uiout, NULL, "data-read-memory-bytes");
+ ui_out_field_string (uiout, NULL, "breakpoint-notifications");
#if HAVE_PYTHON
ui_out_field_string (uiout, NULL, "python");