From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20215 invoked by alias); 9 Dec 2013 13:58:11 -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 20205 invoked by uid 89); 9 Dec 2013 13:58:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.5 required=5.0 tests=AWL,BAYES_00,GARBLED_BODY autolearn=no version=3.3.2 X-HELO: relay1.mentorg.com Received: from Unknown (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Dec 2013 13:58:08 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1Vq1LN-0002X2-34 from Yao_Qi@mentor.com ; Mon, 09 Dec 2013 05:57:53 -0800 Received: from SVR-ORW-FEM-02.mgc.mentorg.com ([147.34.96.206]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 9 Dec 2013 05:57:53 -0800 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.2.247.3; Mon, 9 Dec 2013 05:57:52 -0800 Message-ID: <52A5CC0D.4080004@codesourcery.com> Date: Mon, 09 Dec 2013 13:58:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Pedro Alves CC: Mark Kettenis , Subject: Re: [PATCH 2/3] skip_prolgoue (amd64) References: <1385735051-27558-1-git-send-email-yao@codesourcery.com> <1385735051-27558-3-git-send-email-yao@codesourcery.com> <201311291436.rATEaZ5Z030292@glazunov.sibelius.xs4all.nl> <201311291605.rATG5XVb030184@glazunov.sibelius.xs4all.nl> <52994E79.4000004@codesourcery.com> <5299B9D0.2020304@redhat.com> <529C37A2.9000207@codesourcery.com> <529E9462.9010001@codesourcery.com> <529F1B1F.2040606@redhat.com> <52A426E8.2030808@codesourcery.com> <52A5AF41.6080207@redhat.com> <52A5BF2F.9060708@codesourcery.com> <52A5C202.8010109@redhat.com> In-Reply-To: <52A5C202.8010109@redhat.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00341.txt.bz2 On 12/09/2013 09:13 PM, Pedro Alves wrote: > We can have more stops than resumes. > > #1 - resume everything (1000 threads) > #2 - event in one thread triggers, we call target_wait > #3 - gdb decides to leave thread stopped. > #4 - one hour passes, while threads poke at memory. > #5 - another event triggers, and we call target_wait again > > No resume happened between #2 and #5. Thanks for the explanation. IIUC, #2, #3, and #5 are the result of handle_inferior_event, where cache is flushed (with my patch applied). "wait -> handle event -> wait" is like a loop or circle to me, and we can flush at any point(s) of this circle, depending on what heuristic we are using. -- Yao (齐尧)