From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id QcyGEprm0mgumA8AWB0awg (envelope-from ) for ; Tue, 23 Sep 2025 14:27:38 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=FLkNSHs1; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 422321E0BA; Tue, 23 Sep 2025 14:27:38 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_SBL,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 8F0F41E04C for ; Tue, 23 Sep 2025 14:27:37 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 281D13858023 for ; Tue, 23 Sep 2025 18:27:37 +0000 (GMT) Received: from omta38.uswest2.a.cloudfilter.net (omta38.uswest2.a.cloudfilter.net [35.89.44.37]) by sourceware.org (Postfix) with ESMTPS id 7AEF03858C74 for ; Tue, 23 Sep 2025 18:26:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7AEF03858C74 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7AEF03858C74 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1758652018; cv=none; b=LJX4WYu1SYzGYD5c39OPSoMmbVirNK8u+11XCFcYIcyrKgMHN2UnwBcYJ41JTERAJA8l6UzGWBoHMyk8cBOdPbdEzj1WqGFpM/T6igQjyPIID5h75YGqtZaae+Yh2z7bdR9x5VIk1xI/Zvr+hu69p+5rahLUshskXacnI5sN4EI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1758652018; c=relaxed/simple; bh=HUOjqTFI414OxM3PW1Q8I70j4crOuX5GKb4+nZK2osM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Li106xIdkdXVtSXOCJ09q2vk9fRiLlxs33g/SFhKldg/LdZ9zl1hx5P/BbLEMGZmLuR46NCPLW/qf0xnnOup5AeTxal0vRpTcMJfXYeAtDjlFYYyzLIGQWYVwffc5VBl164U7ckrCWZZjpEsDDNiqKsQL59yk1F52FRfSkAUdPs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5004b.ext.cloudfilter.net ([10.0.29.208]) by cmsmtp with ESMTPS id 13xCvdXfYeNqi17j7vbxBy; Tue, 23 Sep 2025 18:26:57 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 17j6vNZZSBc9y17j7vBQ7v; Tue, 23 Sep 2025 18:26:57 +0000 X-Authority-Analysis: v=2.4 cv=ZcMdNtVA c=1 sm=1 tr=0 ts=68d2e671 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=yJojWOMRYYMA:10 a=ItBw4LHWJt0A:10 a=CCpqsmhAAAAA:8 a=OylF31cGUwsdwlZF_QUA:9 a=ul9cdbp4aOFLsgKbc677:22 a=VS4QxaUSPT0UtbFnIvSC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=112J2DEnaqyxJom3ZPhtdDbhydFZ/blCAIB985W+arM=; b=FLkNSHs1SCm6pSpDAMy1whHBJN gbFYbEOP1wE+DfdJ/eyQX3bra+3/g4jN1hF6cbLQgPZWdal0SG8LZUROBzf/Q77kSyJ+hAsjKIeQB neVHvk421ELh6DzvEJcCi7jud; Received: from 97-122-110-68.hlrn.qwest.net ([97.122.110.68]:57530 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1v17j6-00000000cks-20vI; Tue, 23 Sep 2025 12:26:56 -0600 From: Tom Tromey To: "Metzger, Markus T" Cc: Simon Marchi , Thiago Jung Bauermann , "gdb-patches@sourceware.org" Subject: Re: [PATCH 1/2] gdbserver, read_ptid: handle '0' and '-1' thread ids In-Reply-To: (Markus T. Metzger's message of "Mon, 22 Sep 2025 13:29:12 +0000") References: <20250805071914.3832823-1-markus.t.metzger@intel.com> <87wm76zi98.fsf@linaro.org> <4bc68b3a-d8a5-45b1-aa94-0b6af488d8bc@simark.ca> X-Attribution: Tom Date: Tue, 23 Sep 2025 12:26:54 -0600 Message-ID: <87segdc9e9.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.110.68 X-Source-L: No X-Exim-ID: 1v17j6-00000000cks-20vI X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-110-68.hlrn.qwest.net (bapiya) [97.122.110.68]:57530 X-Source-Auth: tom+tromey.com X-Email-Count: 7 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfN8RB8mDAK6PT3Kh5FonnaHfKmFnTcMKD72O4DexOcbZTy4OXEhC8lt52nqXO9mhlkBUx6S6+VaVOEr9/e++F2QPRX23VPZMWZLlp1ydVLkkvEBseEwW lHKL4jxLWsan2NOh53FXi+CRzHw8V89foJRJbDUosIv4dPn+ytRx88gOok+Hko7FOQLOatsgB7MOU0LJ7hu5cPUHIvfB4eSYOVk= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org > They are more different than it first appears. The gdbserver side > accepts pN.-1, for example, while the gdb side doesn't. The gdb side > doesn't accept -1 at all. > When the string does not start with 'p', both fall back to the > respective inferior on either side, but gdb has special handling for a > not-yet-known process id, whereas the gdbserver side doesn't. I haven't been following this super closely, but there's also a bugzilla bug in this area: https://sourceware.org/bugzilla/show_bug.cgi?id=25111 Tom