From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24247 invoked by alias); 14 Mar 2008 08:28:09 -0000 Received: (qmail 24236 invoked by uid 22791); 14 Mar 2008 08:28:08 -0000 X-Spam-Check-By: sourceware.org Received: from relay-pt3.poste.it (HELO relay-pt3.poste.it) (62.241.4.129) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 14 Mar 2008 08:27:41 +0000 Received: from geppetto.reilabs.com (212.123.91.176) by relay-pt3.poste.it (7.3.122) (authenticated as stefano.sabatini-lala@poste.it) id 47D9C04E00003BDB for gdb@sources.redhat.com; Fri, 14 Mar 2008 09:27:39 +0100 Received: from stefano by geppetto.reilabs.com with local (Exim 4.67) (envelope-from ) id 1Ja5Hf-0004Mc-Jn for gdb@sources.redhat.com; Fri, 14 Mar 2008 09:28:59 +0100 Date: Fri, 14 Mar 2008 09:03:00 -0000 From: Stefano Sabatini To: gdb Mailing List Subject: [NEWBIE] Symbol location by filename problem Message-ID: <20080314082859.GC5680@geppetto> Mail-Followup-To: gdb Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: Linux geppetto 2.6.22-3-486 User-Agent: Mutt/1.5.17+20080114 (2008-01-14) 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/msg00140.txt.bz2 Hi all, this is my first post here so I would like thank you for your useful tool. I'm not even sure if this is the right mailing list to post user questions, please tell me if it is the case. BTW, I would also like to know if there is a central repository where we final users may add documentation, I wonder if the wiki may be used for this purpose. And now back to my problem. 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. 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. 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. Many thanks in advance, best regards. -- Stefano Sabatini Linux user number 337176 (see http://counter.li.org)