From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25970 invoked by alias); 2 Jun 2006 00:30:01 -0000 Received: (qmail 25932 invoked by uid 22791); 2 Jun 2006 00:30:00 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 02 Jun 2006 00:29:59 +0000 Received: from kahikatea.snap.net.nz (p202-124-112-87.snap.net.nz [202.124.112.87]) by viper.snap.net.nz (Postfix) with ESMTP id 37AE8758369 for ; Fri, 2 Jun 2006 12:29:58 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id C718C1D3550; Fri, 2 Jun 2006 12:29:17 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17535.34396.209512.473501@kahikatea.snap.net.nz> Date: Fri, 02 Jun 2006 00:30:00 -0000 To: gdb@sourceware.org Subject: MI: -file-list-exec-source-files X-Mailer: VM 7.19 under Emacs 22.0.50.19 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/msg00002.txt.bz2 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? -- Nick http://www.inet.net.nz/~nickrob