From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53045 invoked by alias); 26 Oct 2015 14:32:14 -0000 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 Received: (qmail 53032 invoked by uid 89); 26 Oct 2015 14:32:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f43.google.com Received: from mail-pa0-f43.google.com (HELO mail-pa0-f43.google.com) (209.85.220.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 26 Oct 2015 14:32:12 +0000 Received: by pacfv9 with SMTP id fv9so198857662pac.3 for ; Mon, 26 Oct 2015 07:32:10 -0700 (PDT) X-Received: by 10.66.164.201 with SMTP id ys9mr22605742pab.50.1445869930822; Mon, 26 Oct 2015 07:32:10 -0700 (PDT) Received: from E107787-LIN (gcc2-power8.osuosl.org. [140.211.9.43]) by smtp.gmail.com with ESMTPSA id u3sm34368900pbs.33.2015.10.26.07.32.08 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 26 Oct 2015 07:32:09 -0700 (PDT) From: Yao Qi To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 16/18] gdbserver/linux: Always wake up event loop after resume References: <1444836486-25679-1-git-send-email-palves@redhat.com> <1444836486-25679-17-git-send-email-palves@redhat.com> Date: Mon, 26 Oct 2015 17:28:00 -0000 In-Reply-To: <1444836486-25679-17-git-send-email-palves@redhat.com> (Pedro Alves's message of "Wed, 14 Oct 2015 16:28:04 +0100") Message-ID: <864mhd1z16.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00567.txt.bz2 Pedro Alves writes: > Handle this in the same way nat/linux-nat.c:linux_nat_resume handles > this. Nit, it is linux-nat.c instead of nat/linux-nat.c. In linux_nat_resume, async_file_mark is guarded by lwp_status_pending_p (lp), so we need to check whether there is an event pending in GDBserver too. --=20 Yao (=E9=BD=90=E5=B0=A7)