From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22382 invoked by alias); 2 Jun 2006 19:38:36 -0000 Received: (qmail 22372 invoked by uid 22791); 2 Jun 2006 19:38:35 -0000 X-Spam-Check-By: sourceware.org Received: from eastrmmtao02.cox.net (HELO eastrmmtao02.cox.net) (68.230.240.37) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 02 Jun 2006 19:38:32 +0000 Received: from localhost.localdomain ([68.9.66.48]) by eastrmmtao02.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060602193829.FWFF15470.eastrmmtao02.cox.net@localhost.localdomain>; Fri, 2 Jun 2006 15:38:29 -0400 Received: from bob by localhost.localdomain with local (Exim 4.60) (envelope-from ) id 1FmFTZ-0002K9-Af; Fri, 02 Jun 2006 15:38:29 -0400 Date: Fri, 02 Jun 2006 19:38:00 -0000 From: Bob Rossi To: Jim Blandy Cc: Nick Roberts , gdb@sourceware.org Subject: Re: MI: -file-list-exec-source-files Message-ID: <20060602193829.GA2288@brasko.net> References: <17535.34396.209512.473501@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00004.txt.bz2 On Fri, Jun 02, 2006 at 12:37:23PM -0700, Jim Blandy wrote: > > Nick Roberts writes: > > The command "-file-list-exec-source-files" often (always?) prints out each > > file twice: > > > > -file-list-exec-source-files > > ^done,files=[{file="myprog.c",fullname="/home/nickrob/myprog.c"},{file="myprint.c",fullname="/home/nickrob/myprint.c"},{file="myprint.c",fullname="/home/nickrob/myprint.c"},{file="myprog.c",fullname="/home/nickrob/myprog.c"}] > > > > Looking at the code I had hoped that one cane from the symbol table and the > > other from the partial symbol table but in fact, when I try it, they both > > come from the partial symbol table. When the program being debugged has lots > > of source files (1000's) this is very wasteful, so I would like to make this > > command just print out each file once. Before I do I'd like to ask: > > > > Why does the partial symbol table have duplicate copies? > > > > Is it safe to assume that duplicates will occur consecutively? > > I think I understand why header files get duplicated, but why .c files > would, too, I don't know. If you can figure it out, let me know. (So > I certainly don't know whether they will always appear consecutively.) I believe this has the same output as 'info sources', so you may want to changes that as well? Bob Rossi