From patchwork Wed Feb 12 01:11:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 37986 Received: (qmail 13154 invoked by alias); 12 Feb 2020 03:00:53 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 13111 invoked by uid 89); 12 Feb 2020 03:00:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: gateway24.websitewelcome.com Received: from gateway24.websitewelcome.com (HELO gateway24.websitewelcome.com) (192.185.51.202) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Feb 2020 03:00:46 +0000 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway24.websitewelcome.com (Postfix) with ESMTP id 1BE54202363 for ; Tue, 11 Feb 2020 19:11:55 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 1gZHjgNmyRP4z1gZHj8BqJ; Tue, 11 Feb 2020 19:11:55 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version :Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=/LJrRZScFcT+tJVersTM8Zis+pMErZ3NV2BXrHVwMcs=; b=if3SBfvTufW1qqZGV/XeRfd3wB 2A3rqLCywflqopRZ9wDTipj7BZooFqXIceNAR11xhjfmu9+zFPptYx6iSq8wSYtt+w5OnrzFNlqzt YB5K8LjZKLX5y58VXQ6EpCJZi; Received: from 50-194-130-62-static.hfc.comcastbusiness.net ([50.194.130.62]:59698 helo=bapiya.hsd1.co.comcast.net) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1j1gZG-001YXa-R8; Tue, 11 Feb 2020 18:11:54 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [pushed] Update a comment in psymtab.h Date: Tue, 11 Feb 2020 18:11:50 -0700 Message-Id: <20200212011150.19545-1-tom@tromey.com> This updates a comment in psymtab.h to reflect the current reality. gdb/ChangeLog 2020-02-11 Tom Tromey * psymtab.h: Update comment. Change-Id: I438bb5929c3ebd1a4c6e9a902490f2ef63014ab3 --- gdb/ChangeLog | 4 ++++ gdb/psymtab.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/psymtab.h b/gdb/psymtab.h index d66547418cb..040b973927c 100644 --- a/gdb/psymtab.h +++ b/gdb/psymtab.h @@ -36,7 +36,9 @@ struct partial_symbol; other memory managed by this class), or on the per-BFD object. The only link from the psymtab storage object back to the objfile (or objfile_obstack) that is made by the core psymtab code is the - compunit_symtab member in the psymtab. + compunit_symtab member in the standard_psymtab -- and a given + symbol reader can avoid this by implementing its own subclasses of + partial_symtab. However, it is up to each symbol reader to maintain this invariant in other ways, if it wants to reuse psymtabs across multiple