From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id L5o5J9e8qGiA0QkAWB0awg (envelope-from ) for ; Fri, 22 Aug 2025 14:54:15 -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=mkeF0Lpb; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 8F95E1E023; Fri, 22 Aug 2025 14:54:15 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, 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 342031E023 for ; Fri, 22 Aug 2025 14:54:15 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CA3DD3851A94 for ; Fri, 22 Aug 2025 18:54:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA3DD3851A94 Authentication-Results: sourceware.org; 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=mkeF0Lpb Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id 35069385840B for ; Fri, 22 Aug 2025 18:53:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 35069385840B 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 35069385840B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1755888828; cv=none; b=wx0A4fN+eMzAV0g4hZNS1PMuORM8RSk9WtKQZJ0L0lF7sMpvx/EZHXdwVq3md0tQMjF7fG5UcIWypoCbBlIJzdm+/Y4Jza1JXuYNNMnPW6ns8HHNznD88WsQWCd5VAbgiQ2F2PYvVzXxLnsll+87JcCex1PRBJgRGgUT0199muQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1755888828; c=relaxed/simple; bh=pURI/AEXS4VBvYuJi7GJcAX07my+s0FtOWk9WZGVFWs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=WzPSi73bGlQz4qCHwUmHDerXkiX9a1z71oGX2NpKKZYfuC4ts34n5Hey3ubTPnuLwHlm2ALUzkx4k1mdZ5I9C5tcpKCqpi6LHr+i8y8RGhdtSfoEdYEY5nJsCpCuU4tnCkkwn1Jsk9HS7ZtO09fkNQBuDC3KvzFbEKXtBm9S3OQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 35069385840B Received: from eig-obgw-6001b.ext.cloudfilter.net ([10.0.30.143]) by cmsmtp with ESMTPS id pMguuY5GD5wATpWtXuiQpL; Fri, 22 Aug 2025 18:53:47 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id pWtWuaQpvWvdBpWtWu9C6s; Fri, 22 Aug 2025 18:53:47 +0000 X-Authority-Analysis: v=2.4 cv=cZfSrmDM c=1 sm=1 tr=0 ts=68a8bcbb a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=2OwXVqhp2XgA:10 a=ItBw4LHWJt0A:10 a=rh1I059J7IiZCKNXgE4A:9 a=6KDmPahKW5ILxopYhpMU: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=cTiIpz1UUCve2ZhNufNZjYGUZcK/ZnFmJfS2+FKfNHU=; b=mkeF0Lpbf/M8Me6SgbvZWIiyUZ cAM77gGIUsLg6B9CPG0p6dxNv9clRGa7rLBmsoZKuO4BKHxeUlC2G8UnechQbwNaNRBdxSVGtpT+Z x17uFO/yRfAnzXxWTfwWzw/Ng; Received: from 97-122-110-68.hlrn.qwest.net ([97.122.110.68]:40544 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 1upWtW-00000004J4v-15zf; Fri, 22 Aug 2025 12:53:46 -0600 From: Tom Tromey To: Tom de Vries Cc: gdb-patches@sourceware.org Subject: Re: [PATCH v2 4/5] [gdb/symtab] Improve invalid range check in create_addrmap_from_gdb_index In-Reply-To: <20250821133114.24091-5-tdevries@suse.de> (Tom de Vries's message of "Thu, 21 Aug 2025 15:31:13 +0200") References: <20250821133114.24091-1-tdevries@suse.de> <20250821133114.24091-5-tdevries@suse.de> X-Attribution: Tom Date: Fri, 22 Aug 2025 12:53:45 -0600 Message-ID: <875xefkx1i.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: 1upWtW-00000004J4v-15zf X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-110-68.hlrn.qwest.net (bapiya) [97.122.110.68]:40544 X-Source-Auth: tom+tromey.com X-Email-Count: 11 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfPqc1u+V4KdINOJ7Ed35kl1GJoAVUC0rZKjH/a04vA0egNtin3JlToVIXVxn9f2RaUuRzr6k6SXViEMjwde8xvVT8a7csGxEEf7LgewpxX+wAPmJdB08 JQRsaMJHACENZKH6rHKvGRS+kcGq6M+ypG3Uf8uIpI3RGLs+QXgW5N36Ae5jPDJdgcX0zqkTvbVX/cG0Vdt4tQejCeAxScvoLT4= 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 >>>>> "Tom" == Tom de Vries writes: Tom> + struct obj_section *lo_sect = find_pc_section (relocated_lo); find_pc_section searches all the objfiles but it seems better to restrict the search to just this objfile (or related non-debug objfile). Using the BFD's sections would mean not having to deal with the runtime offsets as well. Tom