aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-notif.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-12-15 04:06:40 +0000
committerYao Qi <yao@codesourcery.com>2012-12-15 04:06:40 +0000
commitc9b6281a3613cf8ac8f5d2e05c4c73e73f8d5fe7 (patch)
tree3ce61e19baa6bd389375444f82e02dd2105b94f9 /gdb/remote-notif.c
parent722247f1cb9ab5678ad078ba0ba02070cb03a34b (diff)
downloadgdb-c9b6281a3613cf8ac8f5d2e05c4c73e73f8d5fe7.zip
gdb-c9b6281a3613cf8ac8f5d2e05c4c73e73f8d5fe7.tar.gz
gdb-c9b6281a3613cf8ac8f5d2e05c4c73e73f8d5fe7.tar.bz2
gdb/
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'.
Diffstat (limited to 'gdb/remote-notif.c')
-rw-r--r--gdb/remote-notif.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/remote-notif.c b/gdb/remote-notif.c
index 5a72f40..eee09a9 100644
--- a/gdb/remote-notif.c
+++ b/gdb/remote-notif.c
@@ -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);
}