From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11522 invoked by alias); 11 Dec 2006 16:49:27 -0000 Received: (qmail 11513 invoked by uid 22791); 11 Dec 2006 16:49:26 -0000 X-Spam-Check-By: sourceware.org Received: from mxout.hispeed.ch (HELO smtp.hispeed.ch) (62.2.95.247) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 11 Dec 2006 16:49:15 +0000 Received: from indel.ch (84-73-11-232.dclient.hispeed.ch [84.73.11.232]) by smtp.hispeed.ch (8.12.11.20060308/8.12.6/taifun-1.0) with SMTP id kBBGnBRu002898 for ; Mon, 11 Dec 2006 17:49:12 +0100 Received: from FABI.indel.ch [192.168.1.91] by indel.ch [127.0.0.1] with SMTP (MDaemon.v2.7.SP5.R) for ; Mon, 11 Dec 2006 17:49:09 +0100 Message-Id: <5.2.0.9.1.20061211174350.01b23e70@NT_SERVER> X-Sender: cenedese@NT_SERVER (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Mon, 11 Dec 2006 16:49:00 -0000 To: gdb@sourceware.org From: Fabian Cenedese Subject: Re: Wrong source location in symbols In-Reply-To: <20061211134111.GA29018@nevyn.them.org> References: <5.2.0.9.1.20061211104829.0186dcc0@NT_SERVER> <5.2.0.9.1.20061211104829.0186dcc0@NT_SERVER> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-MDaemon-Deliver-To: gdb@sourceware.org X-Return-Path: cenedese@indel.ch X-Virus-Status: Clean X-DCC-spamcheck-02.tornado.cablecom.ch-Metrics: smtp-08.tornado.cablecom.ch 1378; Body=1 Fuz1=1 Fuz2=1 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: 2006-12/txt/msg00083.txt.bz2 At 08:41 11.12.2006 -0500, Daniel Jacobowitz wrote: >On Mon, Dec 11, 2006 at 11:14:52AM +0100, Fabian Cenedese wrote: >> No matter where they are defined, the symbols get as location the (wrong) >> file write.c, so the last valid file from the .text section. I tried with both >> -gstabs or -gdwarf-2, but that didn't change anything. I also tried with >> forward and back slashes in the paths of the compiled files, no luck. >> >> Where's the code in gdb that would set these locations? > >In symtab.c. If you can build a relatively small testcase, we can >investigate. It's not that easy to write a little sample. It may well be the used libs or the whole tool-chain. That's why I try to find it myself. I couldn't quite make out in symtab.c a place where the filenames get set. But I saw in elfread.c, elf_symtab_read that quite some minsyms got the filename write.c set though they are not in this source file. I'll see what else I can find. bye Fabi