From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by sourceware.org (Postfix) with ESMTPS id E67EF3864C65 for ; Thu, 17 Mar 2022 17:52:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E67EF3864C65 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f43.google.com with SMTP id r10so8438405wrp.3 for ; Thu, 17 Mar 2022 10:52:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:to:references:content-language:in-reply-to :content-transfer-encoding; bh=qR2XNAI9Dlxp8x9Zm5YITPOGn9wu2EEE8GAZTdWV5tM=; b=3agH77Sp0xAhCMTRfYMIQJDRBs1OsDb6Hy4Oa0yBLAKstgLf5adNM9Mxk9JLllua67 JyDMLAajFHnjZOXPPg4gzznYocu9Pn3dNve3WmbqVam+M1SYylMBKRuCdt2AGtSFSxNm /Ii36oGQvx1i1AfB47AF7RyjKOLCAuhT7k3ugeHa+qH3+GSpmtlp2eLfFtf+YhyfChSq rW4wp653F0tf06n6bqJcIeE0ToFEVwkQSHrhvoJanN07JUCemqZOODWXRBV60HRq3qaI ZuqPC435N76OT8Ken0OSkevcgzNBG051GI65/g2GfdVT9NCyQ0F4bHUD9t5OzM1HMLNX nYlg== X-Gm-Message-State: AOAM533SNoKh+i9YxEL0pXfR0bmQ9rNlqm5UysblAME07xgLysCe3+wi BwMWmtLgm5gA2rSlJ3h4YTh0PtPRHGpi2w== X-Google-Smtp-Source: ABdhPJzEmCzpS6badQOhCWGQlBCHcjhly2NCOa/Z7C56mqZwZfsXxcqXdKR0IzbndXrnHxIQzsocTg== X-Received: by 2002:a5d:47cb:0:b0:1fa:c92a:b1c with SMTP id o11-20020a5d47cb000000b001fac92a0b1cmr4953258wrc.459.1647539528820; Thu, 17 Mar 2022 10:52:08 -0700 (PDT) Received: from ?IPV6:2001:8a0:f924:2600:209d:85e2:409e:8726? ([2001:8a0:f924:2600:209d:85e2:409e:8726]) by smtp.gmail.com with ESMTPSA id z3-20020a1cf403000000b0037d1f4a2201sm4681338wma.21.2022.03.17.10.52.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Mar 2022 10:52:07 -0700 (PDT) Message-ID: <614d4e0d-98ae-f507-f1ff-aca0e94a483a@palves.net> Date: Thu, 17 Mar 2022 17:52:06 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 From: Pedro Alves Subject: Re: [EXTERNAL] Re: Issue with multiple threads using remote protocol on riscv32 To: "Denio, Mike" , "gdb@sourceware.org" References: <0f242330e5e242dea1957fbab47a6473@ti.com> <4f443800-59d7-5e87-f89e-b2d574ed071a@palves.net> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2022 17:52:15 -0000 On 2022-03-16 15:10, Denio, Mike wrote: > Ok, thanks. I'll have to think about how I'm going to implement that. > > Is it safe to assume that this only affects the initial event, and that once I see the first 'vStopped', GDB will not interlace more 'vCont' commands? > > For example, say I had 8 newly stopped threads such that GDB will end up calling 'vStopped' 8 times. Is it safe to assume that GDB will not send any new vCont in the middle of sending those 8 vStopped? Currently, when GDB issues a vStopped, it keeps issuing it until the remote side returns OK, indicating no more pending events. But I wouldn't trust that that won't ever change. Imagine at some point we come to the conclusion that it would be better to batch fetching pending events, so that GDB went on to process the pending events once it fetches some N events out of vStopped, maybe go on to process events out of some other remote connection / target, and then goes back to fetching another batch of N events out of the first remote connection, and so forth.