From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15767 invoked by alias); 11 Dec 2012 06:41:03 -0000 Received: (qmail 15582 invoked by uid 22791); 11 Dec 2012 06:41:00 -0000 X-SWARE-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Dec 2012 06:40:50 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1TiJWL-0002DT-A2 from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Mon, 10 Dec 2012 22:40:49 -0800 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 10 Dec 2012 22:40:49 -0800 Received: from qiyao.dyndns.org.com (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.1.289.1; Mon, 10 Dec 2012 22:40:47 -0800 From: Yao Qi To: Subject: [PATCH 4/8] command 'set debug notification'. Date: Tue, 11 Dec 2012 06:41:00 -0000 Message-ID: <1355208017-9204-5-git-send-email-yao@codesourcery.com> In-Reply-To: <1355208017-9204-1-git-send-email-yao@codesourcery.com> References: <1355208017-9204-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00305.txt.bz2 gdb: 2012-12-07 Yao Qi * remote-notif.c (_initialize_notif): Add new commands 'set debug notification' and 'show debug notification'. * NEWS: Mention these new commands. gdb/doc: 2012-12-07 Yao Qi * gdb.texinfo (Debugging Output): Document 'set debug notification' and 'show debug notification'. --- gdb/NEWS | 4 ++++ gdb/doc/gdb.texinfo | 6 ++++++ gdb/remote-notif.c | 11 +++++++++++ 3 files changed, 21 insertions(+), 0 deletions(-) diff --git a/gdb/NEWS b/gdb/NEWS index 3b09e5f..e6f14f0 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -64,6 +64,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/gdb.texinfo b/gdb/doc/gdb.texinfo index 9ffdb77..9465047 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -21967,6 +21967,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 5a72f40..c02394a 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 @@ -267,4 +268,14 @@ void _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, async remote notification specific" +" internal debugging is enabled."), + NULL, + NULL, + &setdebuglist, &showdebuglist); } -- 1.7.7.6