From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id E0DEE3858414 for ; Fri, 10 Feb 2023 21:01:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E0DEE3858414 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca Received: from [172.16.0.192] (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 0FE071E0D3; Fri, 10 Feb 2023 16:01:49 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1676062909; bh=2NwgMsadsN2AxFTpZ8GqBxbUebZqfF003qp2fyhkTJY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=goZFyFgqsUteT5ZAYMo7Ih+0oXVoZgJ1a8Qb4s8AZV/MH30sX4psLHPp522NXR7WL STX7jojzQDpuhgNSUs2opDULUBSVjzVvUUo3zX8RL9vt2SL3oU5vA/iV1w9BkVrfD2 JSer6ER0wx41/NpbruA3Lh885kg9k+sGs7uWnsLU= Message-ID: <4768292e-1d5a-b7f1-6b06-9ead20542cdc@simark.ca> Date: Fri, 10 Feb 2023 16:01:48 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: [PATCH v3 4/8] gdbserver/linux-aarch64: When thread stops, update its target description Content-Language: fr To: Thiago Jung Bauermann , Tom Tromey Cc: Luis Machado via Gdb-patches , Luis Machado , Pedro Alves , Andrew Burgess References: <20230130044518.3322695-1-thiago.bauermann@linaro.org> <20230130044518.3322695-5-thiago.bauermann@linaro.org> <87pmattzjw.fsf@redhat.com> <7970ac03-1123-d5f6-7b17-808832d43be6@simark.ca> <9a85e2fe-078a-e2ee-7e49-53fe0ceef492@arm.com> <87y1pgaib6.fsf@linaro.org> <3f4e3603-59e3-a896-72e4-d692646c4e44@palves.net> <87v8kd9odi.fsf@linaro.org> <87cz6i2o6x.fsf@linaro.org> <9864aa2b-f3cc-94ae-0785-5565cc990006@arm.com> <87sffdy32p.fsf@tromey.com> <874jrt2zzt.fsf@linaro.org> From: Simon Marchi In-Reply-To: <874jrt2zzt.fsf@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2/10/23 12:26, Thiago Jung Bauermann via Gdb-patches wrote: > > Tom Tromey writes: > >> Luis> I'd be happy with an intermediate solution like what Thiago put >> Luis> together. It would solve a long-standing issue for SVE and >> Luis> gdbserver and it seems simpler at this point, plus Thiago already >> Luis> put the effort to write the code. >> >> I haven't followed this discussion, but with the remote protocol, >> whatever we do now will be baked in forever. So, it's worth spending >> extra time up front to get a really solid approach. (I'm not saying >> this isn't, just pointing out that there's a long-term cost.) > > Andrew recommended adding a new feature to the qSupported packet so it > would be an optional extension of the remote protocol — not really baked > into it but rather a complementary muffin. > > Per-thread target descriptions are also a very generic feature that > I can see being useful for heterogeneous computers, though I don't know > if there's any actual interest in that in the context of GDB and the > remote protocol. Maybe Pedro will correct me but... for ROCm, it's possible we'll want to support remote debugging in the future. And our model is a mix of host and GPU threads in a single inferior. So I can see this feature being useful for that. Simon