This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Announce mi pending breakpoint support.


This patch makes the -list-features command announce presence
of the recently committed support for pending breakpoints in MI.
I need it to automatically make use of this functionality in
KDevelop 3.5. OK?

- Volodya

	gdb/
	* mi/mi-main.c (mi_cmd_list_features): Announce
	the 'pending-breakpoints' feature.

	gdb/doc/
	* gdb.texinfo (Miscellaneous gdb/mi Commands):
	Document 'pending-breakpoints' feature of
	-list-features.
---
 gdb/doc/gdb.texinfo |    4 ++++
 gdb/mi/mi-main.c    |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 01f5db5..db4106e 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -21600,6 +21600,10 @@ The current list of features is:
 @samp{frozen-varobjs}---indicates presence of the
 @code{-var-set-frozen} command, as well as possible presense of the
 @code{frozen} field in the output of @code{-varobj-create}.
+@item
+@samp{pending-breakpoints}---indicates presence of the @code{-f}
+option to the @code{-break-insert} command.
+
 @end itemize
 
 @subheading The @code{-interpreter-exec} Command
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 025c66d..b23d337 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1054,6 +1054,7 @@ mi_cmd_list_features (char *command, char **argv, int argc)
       cleanup = make_cleanup_ui_out_list_begin_end (uiout, "features");      
 
       ui_out_field_string (uiout, NULL, "frozen-varobjs");
+      ui_out_field_string (uiout, NULL, "pending-breakpoints");
       
       do_cleanups (cleanup);
 
-- 
1.5.3.5


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]