From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16235 invoked by alias); 11 Dec 2012 06:41:09 -0000 Received: (qmail 16112 invoked by uid 22791); 11 Dec 2012 06:41:07 -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:41:01 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1TiJWW-0002F1-RR from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Mon, 10 Dec 2012 22:41:00 -0800 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 10 Dec 2012 22:41:00 -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:59 -0800 From: Yao Qi To: Subject: [PATCH 7/8] Cleanup pending queues before resume in all-stop Date: Tue, 11 Dec 2012 06:41:00 -0000 Message-ID: <1355208017-9204-8-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/msg00304.txt.bz2 Hi, Please read the comments to see why we need this change. gdb: 2012-12-11 Yao Qi * remote.c (remote_resume): Call 'remote_notif_process' in all-stop mode. --- gdb/remote.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/gdb/remote.c b/gdb/remote.c index 5c8b20e..47b2c45 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -4750,6 +4750,15 @@ remote_resume (struct target_ops *ops, struct remote_state *rs = get_remote_state (); char *buf; + /* In all-stop, we can't mark REMOTE_ASYNC_GET_PENDING_EVENTS_TOKEN + (explained in remote-notif.c:handle_notification) so + remote_notif_process is not called. We need find a place where + it is safe to start a 'vNotif' sequence. It is good to do it + before resuming inferior, because inferior was stopped and no RSP + traffic at that moment. */ + if (!non_stop) + remote_notif_process (¬if_client_stop); + last_sent_signal = siggnal; last_sent_step = step; -- 1.7.7.6