From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5408 invoked by alias); 16 Feb 2004 01:42:34 -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 5397 invoked from network); 16 Feb 2004 01:42:33 -0000 Received: from unknown (HELO demos.bsdclusters.com) (69.55.225.36) by sources.redhat.com with SMTP; 16 Feb 2004 01:42:33 -0000 Received: from demos.bsdclusters.com (demos [69.55.225.36]) by demos.bsdclusters.com (8.12.8p1/8.12.8) with ESMTP id i1G1gTe0070361; Sun, 15 Feb 2004 17:42:29 -0800 (PST) (envelope-from kmacy@fsmware.com) Received: from localhost (kmacy@localhost) by demos.bsdclusters.com (8.12.8p1/8.12.8/Submit) with ESMTP id i1G1gR2O070354; Sun, 15 Feb 2004 17:42:27 -0800 (PST) X-Authentication-Warning: demos.bsdclusters.com: kmacy owned process doing -bs Date: Mon, 16 Feb 2004 01:42:00 -0000 From: Kip Macy X-X-Sender: kmacy@demos.bsdclusters.com To: Bob Rossi cc: gdb@sources.redhat.com Subject: Re: [MI] -file-list-exec-source-files In-Reply-To: <20040216012652.GA3258@white> Message-ID: <20040215173938.R69105@demos.bsdclusters.com> References: <20040213012946.GB4476@white> <20040216012652.GA3258@white> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-02/txt/msg00149.txt.bz2 My limited experience indicates that it can take up to 7 days to get feedback on an idea on this list. At this point the best thing to do is sit tight :-). -Kip On Sun, 15 Feb 2004, Bob Rossi wrote: > What do I have to do to get some feedback on this subject? > > On Thu, Feb 12, 2004 at 08:29:46PM -0500, Bob Rossi wrote: > > Hi, > > > > I have been trying to implement -file-list-exec-source-files for some > > time now. So far the command outputs the filename and fullname for each > > symtab and psymtab. The fullname part only get's output if GDB knows > > what it is. > > > > The problem is, I recently discovered that the fullname can only be > > retrieved from the symtab, it can't be retrieved with just a psymtab. > > The reason is because the symtab has a 'dirname' member, which is > > necessary in finding the absolute path to a source file. Obviously I > > can't read in all the symtabs just to get the fullname for each psymtab. > > > > So, I have 2 solutions, > > 1. Modify the psytmab to also have the 'dirname'. Which seems > > difficult. Although I do think this is the best solution. (Not knowing > > to much about psymtabs and symtabs) > > > > 2. Change -file-list-exec-source-file to receive an optional filename, > > which when doing this causes GDB to read in the symtab associated with > > the psymtab. Then the fullname can be retrieved. > > > > I believe option 2 is how the CLI works. > > If you do > > list foo.c:1 > > info source > > I am sure this reads in the symtab for foo.c and then it knows how to > > get the fullpath. I don't really like this solution that much, so I > > think it would be better to add the 'dirname' to the psymtab. > > > > Any suggestions? > > If your interested in poking around to see where symtab->dirname gets > > set, look around buildsym.c:975. Does anyone know if there would be an > > easy way into getting dirname set into the psymtab? > > > > Thanks, > > Bob Rossi >