gdb/
authorYao Qi <yao@codesourcery.com>
Sat, 15 Dec 2012 04:06:40 +0000 (04:06 +0000)
committerYao Qi <yao@codesourcery.com>
Sat, 15 Dec 2012 04:06:40 +0000 (04:06 +0000)
2012-12-15  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-12-15 Yao Qi  <yao@codesourcery.com>

* gdb.texinfo (Debugging Output): Document 'set debug
notification' and 'show debug notification'.

gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/remote-notif.c

index e98564575f5a3800bc11f0fd57e19e64b9cc03d7..ea24d83996740665087f868115c732fdc061773e 100644 (file)
@@ -1,3 +1,9 @@
+2012-12-15  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.
+
 2012-12-15  Yao Qi  <yao@codesourcery.com>
 
        * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
index 52662fc459d54cf61882eae3a795d835a41132d6..9912dc8ed0038c1d41c3d2cedeb219770e84bca6 100644 (file)
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -71,6 +71,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
index f2e779bff7946bd5d953a6ec06359896a6e8ab04..08ff9808c634473b60e1ddc77fab4ab389e3d4f6 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-15  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.texinfo (Debugging Output): Document 'set debug
+       notification' and 'show debug notification'.
+
 2012-12-15  Yao Qi  <yao@codesourcery.com>
 
        * gdb.texinfo (Listing Tracepoints): New item and example about
index 9e80c5be574d04ef58bcd2dfe0bd9382e3765c5a..5abcd93c9f188f696b3c3e9879498dfe8ce6d3c6 100644 (file)
@@ -21983,6 +21983,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
index 5a72f4081371de7a185d006f7de07dbc71d912d5..eee09a93c2252201afb0451ea6b670969676d104 100644 (file)
@@ -38,6 +38,7 @@
 #include "event-loop.h"
 #include "target.h"
 #include "inferior.h"
+#include "gdbcmd.h"
 
 #include <string.h>
 
@@ -267,4 +268,14 @@ void
 _initialize_notif (void)
 {
   notif_queue = QUEUE_alloc (notif_client_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, debugging output about async remote notifications"
+" is enabled."),
+                          NULL,
+                          NULL,
+                          &setdebuglist, &showdebuglist);
 }