summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqiyao <qiyao>2012-12-15 04:06:38 +0000
committerqiyao <qiyao>2012-12-15 04:06:38 +0000
commitc978718d0359f330421b037c26b8000350c2f762 (patch)
treeb72ff58e164cf84b490e4a3ac7af42ab1a056e5d
parent529a26c810b9adbba5756cd381e06fe8d6705565 (diff)
downloadgdb-c978718d0359f330421b037c26b8000350c2f762.tar.gz
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'.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/NEWS4
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo6
-rw-r--r--gdb/remote-notif.c11
5 files changed, 32 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e98564575f5..ea24d839967 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
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".
(SFILES): Add "remote-notif.c".
(HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
diff --git a/gdb/NEWS b/gdb/NEWS
index 52662fc459d..9912dc8ed00 100644
--- 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
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index f2e779bff79..08ff9808c63 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,10 @@
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
'installed on target' output.
Add more in the example about 'installed on target'.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 9e80c5be574..5abcd93c9f1 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -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
diff --git a/gdb/remote-notif.c b/gdb/remote-notif.c
index 5a72f408137..eee09a93c22 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);
}