From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15115 invoked by alias); 14 Mar 2008 09:12:22 -0000 Received: (qmail 15104 invoked by uid 22791); 14 Mar 2008 09:12:21 -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, 14 Mar 2008 09:11:54 +0000 Received: from kahikatea.snap.net.nz (217.61.255.123.dynamic.snap.net.nz [123.255.61.217]) by viper.snap.net.nz (Postfix) with ESMTP id 8A1053DA220; Fri, 14 Mar 2008 22:11:51 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 1CB9D8FC6D; Fri, 14 Mar 2008 22:11:45 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18394.16720.122465.164330@kahikatea.snap.net.nz> Date: Fri, 14 Mar 2008 11:36:00 -0000 To: Stefano Sabatini Cc: gdb Mailing List Subject: Re: [NEWBIE] Symbol location by filename problem In-Reply-To: <20080314082859.GC5680@geppetto> References: <20080314082859.GC5680@geppetto> X-Mailer: VM 7.19 under Emacs 22.1.91.2 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00142.txt.bz2 > I'm not even sure if this is the right mailing list to post user > questions, please tell me if it is the case. For questions about using Gdb in Emacs it's probably best to post to 1) help-gnu-emacs@gnu.org for released versions of Emacs 2) emacs-devel@gnu.org for unreleased versions of Emacs (CVS repository at Savannah) > I'm using here the emacs GUD interface. I noticed that when gdb looks for > a symbol, if there is in dir more than one file with the same filename > it happens it shows the wrong one, that is the first in the dir with > that filename. My workaround is to change the current dir of > GDB to that of the correct file when *I* know the symbol is. How do you ask Gdb to look for a symbol? > I think this depends on the fact that the symbol table only contains > the stripped name of the filename of each symbol, rather than > containing the complete path. It sounds like you are asking Gdb to look for a file - but I'm not sure. In any case, Gdb has the full filenames. > I would like to know if this is a GDB rather than a GUD specific > problem, and if it can be eventually fixed (maybe compiling with some > specific flag, I'm using gcc here) or if I have to stay with it. It's probably an Emacs problem but you don't say what version you are using, or what platform. In Emacs, please do M-x report-emacs-bug (also on the menu-bar (Help->Send Bug Report...) then it will start a mail message with the right e-mail address and include your configuration. If you then describe the problem again (for subscribers of that list) and include your version of Gdb, we can look for an answer. -- Nick http://www.inet.net.nz/~nickrob