From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id qoT5N8HCWmi0ZxwAWB0awg (envelope-from ) for ; Tue, 24 Jun 2025 11:22:41 -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=FqMRBraz; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id D609E1E11C; Tue, 24 Jun 2025 11:22:41 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-8.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE autolearn=ham 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 539021E0C2 for ; Tue, 24 Jun 2025 11:22:41 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CF63C385274A for ; Tue, 24 Jun 2025 15:22:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CF63C385274A 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=FqMRBraz Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id 8A9D2385625E for ; Tue, 24 Jun 2025 15:22:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8A9D2385625E 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 8A9D2385625E 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=1750778531; cv=none; b=Iqz5I9NyeUuYsBl9uknzXICYsTF7XWdJ3QBSnKRQLH+aAx7Ww4yzUlYyWlZPtz+QYY9p/SprvMz/aUhSDYT9davuLeERSW6GIz291o+JZrB/FaoLYS1BOg/dm/+zxCBdhKr22n0+mx8z6jlE6DyhoNkstwYLFJLyKRNDLd9LqsE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1750778531; c=relaxed/simple; bh=Rgoj+r5zwg+FyP6TCiOFkau8dHggntEWVYokf6aHiq8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=QsvMkp6O7iWHlunRGyyZ7eosEq5KTfpFwOOzn+nT1WSb5IIfhYg3frwbeIJVqX23q2CZs/rfFvgsms5VewabLu36aVsae0wVYttUlb06fqjkOWaqJV2YnJz0DdsbY6zZxec9Y6G/nnDhxGJOpQi+n8vYXBf8JCAnMsTeOxwVfD0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A9D2385625E Received: from eig-obgw-5002a.ext.cloudfilter.net ([10.0.29.215]) by cmsmtp with ESMTPS id U2Y6uXkfeiuzSU5TPuhHcJ; Tue, 24 Jun 2025 15:22:11 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id U5TOuCQbFJ4PgU5TOusJdT; Tue, 24 Jun 2025 15:22:10 +0000 X-Authority-Analysis: v=2.4 cv=ZaLWNdVA c=1 sm=1 tr=0 ts=685ac2a2 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=6IFa9wvqVegA:10 a=ItBw4LHWJt0A:10 a=TDl5R864AAAA:8 a=BmfZK8czlGXl4DFAZ_4A:9 a=4IKI_MBedZsHOhguCAbN: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=bTfHxRlNVJMMCUl9J2JLfwb/amDqPSBcSM8LsSDg3Tg=; b=FqMRBrazraiE+v09NFKCJZi6+P O/ubfcDzZHknSVSnNMGv7GWMHS+4+0+U32gJW+j2a2f1gC+YQsJzjQ8hq/aJTCgaoJIC8EwaIWOtX SK5Ul1RDjkx3nV7x+146Sr20i; Received: from 97-118-59-152.hlrn.qwest.net ([97.118.59.152]:38774 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 1uU5TN-00000002RUc-2A5a; Tue, 24 Jun 2025 09:22:09 -0600 From: Tom Tromey To: Jan Vrany Cc: gdb-patches@sourceware.org Subject: Re: [RFC v5 01/18] gdb: introduce expand_symtabs_maybe_overlapping In-Reply-To: <20250623161013.650814-2-jan.vrany@labware.com> (Jan Vrany's message of "Mon, 23 Jun 2025 17:09:56 +0100") References: <20250623161013.650814-1-jan.vrany@labware.com> <20250623161013.650814-2-jan.vrany@labware.com> X-Attribution: Tom Date: Tue, 24 Jun 2025 09:22:07 -0600 Message-ID: <877c11yxk0.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.118.59.152 X-Source-L: No X-Exim-ID: 1uU5TN-00000002RUc-2A5a X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-118-59-152.hlrn.qwest.net (bapiya) [97.118.59.152]:38774 X-Source-Auth: tom+tromey.com X-Email-Count: 16 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfG5ezyuWQ1fWpXmOmD7m3SahDiMSA7inOx/sDee83BINBx7HLylHRlApmDGQtZOISBJIONWpvZS9EiTcli3TscQpn8K66NAAQ4MPrgBIR36xKW/p3/vA SNERahu+gBwuhazellnWUlNA+XPp5gplkBWLvoRGGJwVUlBRvUyQeCWfbBDhX16SUxP3TVlDYOU5cpqNTCINZMxcF5+xm8l9Lag= 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 >>>>> "Jan" == Jan Vrany writes: Jan> This commit introduces expand_symtabs_maybe_overlapping, a new "quick Jan> symbol function". This will be used later by Python API to create new Jan> compunits to ensure to-be-created compunit does not overlap with Jan> existing one. Jan> For DWARF2 base index functions, all compunits are expanded Jan> unconditionally since there seem to be no way to extract unexpanded Jan> compunit's conservative address range. This is extremely expensive, so I don't think it's a good approach. You can probably call cooked_index::lookup to see if an address is covered: /* Look up ADDR in the address map, and return either the corresponding CU, or nullptr if the address could not be found. */ dwarf2_per_cu *lookup (unrelocated_addr addr) override; Tom