From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47566 invoked by alias); 3 May 2018 22:36:27 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 47514 invoked by uid 89); 3 May 2018 22:36:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=nail X-HELO: gateway32.websitewelcome.com Received: from gateway32.websitewelcome.com (HELO gateway32.websitewelcome.com) (192.185.145.107) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 03 May 2018 22:36:24 +0000 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 7F2A7B9F4CC for ; Thu, 3 May 2018 17:36:23 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id EMprf63pllAdrEMprfeTAn; Thu, 03 May 2018 17:36:23 -0500 X-Authority-Reason: nr=8 Received: from 97-122-176-117.hlrn.qwest.net ([97.122.176.117]:51190 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1fEMpr-003rsK-9D for gdb-patches@sourceware.org; Thu, 03 May 2018 17:36:23 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Subject: [RFA 0/6] Make psymbols independent of the progspace Date: Thu, 03 May 2018 22:36:00 -0000 Message-Id: <20180503223621.22544-1-tom@tromey.com> X-BWhitelist: no X-Source-L: No X-Exim-ID: 1fEMpr-003rsK-9D X-Source-Sender: 97-122-176-117.hlrn.qwest.net (bapiya.Home) [97.122.176.117]:51190 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-SW-Source: 2018-05/txt/msg00074.txt.bz2 This is another old patch series that I never checked in, which I've now rebased. Like some earlier series -- most recently for line tables -- This series changes partial symbols to be independent of the progspace. This means that the data is now stored unrelocated, and could in theory be shared across multiple objfiles. In practice psymtabs cannot be shared yet, because they have a backlink to the full symtab. Patches #1-#3 are just infrastructure changes in preparation for the main patch; and most of the real work is in patch #6. In patch #6 I chose to adjust addresses like this: lo = gdbarch_adjust_dwarf2_addr (gdbarch, lo + baseaddr) - baseaddr; I'm not sure if this is the best way. Maybe in the line table (I can't look at this moment and I don't recall offhand) patch I chose to pass unrelocated addresses to gdbarch_adjust_dwarf2_addr. It would be good to nail down the intended meaning of this hook and adjust accordingly. Tested by the buildbot -- but careful review is still required, because some of the changes are not tested there. Tom