+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".
 
 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
 
+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
 
 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
 
 #include "event-loop.h"
 #include "target.h"
 #include "inferior.h"
+#include "gdbcmd.h"
 
 #include <string.h>
 
 _initialize_notif (void)
 {
   notif_queue = QUEUE_alloc (notif_client_p, notif_xfree);
+
+  add_setshow_boolean_cmd ("notification", no_class, ¬if_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);
 }