From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11339 invoked by alias); 10 Oct 2004 04:06:35 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 11331 invoked from network); 10 Oct 2004 04:06:34 -0000 Received: from unknown (HELO dberlin.org) (68.164.203.246) by sourceware.org with SMTP; 10 Oct 2004 04:06:34 -0000 Received: from [127.0.0.1] (HELO dberlin.org) by dberlin.org (CommuniGate Pro SMTP 4.2.1) with ESMTP-TLS id 7387665; Sun, 10 Oct 2004 00:06:26 -0400 Date: Mon, 11 Oct 2004 01:46:00 -0000 From: Daniel Berlin To: Jason Molenda cc: Andrew Cagney , Daniel Jacobowitz , Nick Savoiu , gdb@sources.redhat.com Subject: Re: Debugging a large program In-Reply-To: <20041008121611.A90098@molenda.com> Message-ID: References: <20041008121611.A90098@molenda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-SW-Source: 2004-10/txt/msg00273.txt.bz2 > > Andrew's approach is much cooler, Which is probably why i suggested exactly that years ago :) The cooperation you need is a bit more than just debug_pubnames, pubtypes, and debug_aranges though (so that info functions and whatnot still worked like it does now), but nobody has ever asked any gcc guys to implement it for them (heck, i'd be happy to if you guys put together a definitive list of things you need, and proposed any new sections to the dwarf3 mailing list). If you don't care about info functions output, tab completion of names, or are willing to live with them only showing "public" symbols, i believe you could implement this stuff now. bfd's window stuff is currently undefined unless want_mmap is set to true (by the configure option --with-mmap, the default is false, it seems). You need that to be able to just get pieces of the section. It looks like it has a non-mmap fallback implemented in bfdwin.c, but "bfd_generic_get_section_contents_in_window" aborts if you don't have USE_MMAP set. So uh, just wake me someone gets all the bfd stuff sorted out, and you guys figure out what you need more than what you've got to do this in the way you want it done, and i'll happily help propose these things on the dwarf3 reflector/implement them for gcc. --Dan