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]

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


This patch adds new commands 'set|show debug notification', and
documents this new command.

gdb:

2012-10-23  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-23 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  |   10 ++++++++++
 3 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/gdb/NEWS b/gdb/NEWS
index 069b84f..f725b46 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -46,6 +46,10 @@ pi [command]
 py [command]
   "py" is a new alias for "python".
 
+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 0c7aa1c..0b560b6 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -21841,6 +21841,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..adeb2c7 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,13 @@ _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_zuinteger_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]