This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 4/6] command 'set debug notification'.
This patch adds a new command 'set debug notification', and documents
this new command.
gdb:
2012-09-22 Yao Qi <yao@codesourcery.com>
* remote-notif.c (_initialize_notif): Add new command
'set debug notification'.
gdb/doc:
2012-09-22 Yao Qi <yao@codesourcery.com>
* gdb.texinfo (Debugging Output): Document set debug notification.
---
gdb/doc/gdb.texinfo | 6 ++++++
gdb/remote-notif.c | 10 ++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 5fcbada..62cdd42 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -21814,6 +21814,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 2631b8a..6bc804d 100644
--- a/gdb/remote-notif.c
+++ b/gdb/remote-notif.c
@@ -23,6 +23,7 @@
#include "event-loop.h"
#include "target.h"
#include "inferior.h"
+#include "gdbcmd.h"
#include <string.h>
@@ -326,4 +327,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_zinteger_cmd ("notification", no_class, ¬if_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