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]

Re: [PATCH 4/7] command 'set debug notification'.


On 10/23/2012 07:26 PM, Yao Qi wrote:
> +
> +  add_setshow_zuinteger_cmd ("notification", no_class, &notif_debug, _("\

This patch is a new version, updated to use boolean command here.
Everything else is unchanged.

-- 

gdb:

2012-11-14  Yao Qi  <yao@codesourcery.com>

	* remote-notif.c (_initialize_notif): Add new commands
	'set debug notification' and 'show debug notification'.
	* NEWS: Mention these new commands.
gdb/doc:

2012-10-14 Yao Qi  <yao@codesourcery.com>

	* gdb.texinfo (Debugging Output): Document 'set debug
	notification' and 'show debug notification'.
---
 gdb/NEWS            |    4 ++++
 gdb/doc/gdb.texinfo |    6 ++++++
 gdb/remote-notif.c  |   11 +++++++++++
 3 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/gdb/NEWS b/gdb/NEWS
index 739a7b3..ae12589 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -57,6 +57,10 @@ enable type-printer [name]...
 disable type-printer [name]...
   Enable or disable type printers.
 
+set debug notification
+show debug notification
+  Control display of debugging info for async remote notification.
+
 * Removed commands
 
   ** For the Renesas Super-H architecture, the "regs" command has been removed
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 86cfe8e..c69f1b9 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -21902,6 +21902,12 @@ Displays the current state of @value{GDBN} JIT debugging.
 Turns on or off debugging messages from the Linux LWP debug support.
 @item show debug lin-lwp
 Show the current state of Linux LWP debugging messages.
+@item set debug notification
+@cindex remote async notification debugging info
+Turns on or off debugging messages about remote async notification.
+The default is off.
+@item show debug notification
+Displays the current state of remote async notification debugging messages.
 @item set debug observer
 @cindex observer debugging info
 Turns on or off display of @value{GDBN} observer debugging.  This
diff --git a/gdb/remote-notif.c b/gdb/remote-notif.c
index 1032051..8dfe178 100644
--- a/gdb/remote-notif.c
+++ b/gdb/remote-notif.c
@@ -37,6 +37,7 @@
 #include "event-loop.h"
 #include "target.h"
 #include "inferior.h"
+#include "gdbcmd.h"
 
 #include <string.h>
 
@@ -295,4 +296,14 @@ _initialize_notif (void)
   notif_packet_stop.ack_queue = QUEUE_alloc (notif_reply_p, notif_reply_xfree);
 
   notif_queue = QUEUE_alloc (notif_p, notif_xfree);
+
+  add_setshow_boolean_cmd ("notification", no_class, &notif_debug,
+			   _("\
+Set debugging of async remote notification."), _("\
+Show debugging of async remote notification."), _("\
+When non-zero, async remote notification specific"
+" internal debugging is enabled."),
+			   NULL,
+			   NULL,
+			   &setdebuglist, &showdebuglist);
 }
-- 
1.7.7.6


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