From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24569 invoked by alias); 5 Jun 2009 22:18:12 -0000 Received: (qmail 24561 invoked by uid 22791); 5 Jun 2009 22:18:12 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 05 Jun 2009 22:18:05 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n55MFvKF022040; Fri, 5 Jun 2009 18:15:57 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n55MFuQQ005320; Fri, 5 Jun 2009 18:15:56 -0400 Received: from opsy.redhat.com (vpn-12-153.rdu.redhat.com [10.11.12.153]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n55MFtVl027528; Fri, 5 Jun 2009 18:15:55 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 8ECCA378615; Fri, 5 Jun 2009 16:15:54 -0600 (MDT) To: Pedro Alves Cc: gdb-patches@sourceware.org, Doug Evans , Eli Zaretskii Subject: Re: [RFA] Fix too many "no debugging symbols found" warnings. References: <20090523232414.BED2B846C2@localhost> <200906042221.22713.pedro@codesourcery.com> <200906051949.45647.pedro@codesourcery.com> From: Tom Tromey Reply-To: tromey@redhat.com Date: Fri, 05 Jun 2009 22:18:00 -0000 In-Reply-To: <200906051949.45647.pedro@codesourcery.com> (Pedro Alves's message of "Fri\, 5 Jun 2009 19\:49\:44 +0100") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 X-SW-Source: 2009-06/txt/msg00139.txt.bz2 >>>>> "Pedro" == Pedro Alves writes: Tom> IMO, the ideal would be to share objfiles across inferiors (perhaps a Tom> big task in itself) and then issue this warning at most once per Tom> objfile. That way the user won't see 1000 warnings for /lib/libc.so. Pedro> For true/always/full sharing, I'm thinking that we'd have to Pedro> rework how gdb addresses symbol values (we relocate everything Pedro> early; we'd have to apply relocation offsets on demand), and, Pedro> we do some sorting of symbols, since sections may end up loaded Pedro> at different relative offsets within the same objfile for Pedro> different inferiors, in some targets. Yeah. I was thinking of perhaps splitting objfile in two, and moving the relocated bits into a per-inferior handle, which points to the abstract objfile. But, this is just a vague thought. And, we've been talking a bit in Archer-land about some more drastic changes to the symbol tables (e.g., getting rid of psymtabs for dwarf), and this would probably interact with that as well. Tom