From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18135 invoked by alias); 11 Dec 2006 13:41:23 -0000 Received: (qmail 18126 invoked by uid 22791); 11 Dec 2006 13:41:23 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 11 Dec 2006 13:41:15 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1GtlP6-0007YM-78; Mon, 11 Dec 2006 08:41:12 -0500 Date: Mon, 11 Dec 2006 13:41:00 -0000 From: Daniel Jacobowitz To: Fabian Cenedese Cc: gdb@sourceware.org Subject: Re: Wrong source location in symbols Message-ID: <20061211134111.GA29018@nevyn.them.org> Mail-Followup-To: Fabian Cenedese , gdb@sourceware.org References: <5.2.0.9.1.20061211104829.0186dcc0@NT_SERVER> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.2.0.9.1.20061211104829.0186dcc0@NT_SERVER> User-Agent: Mutt/1.5.13 (2006-08-11) 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/msg00082.txt.bz2 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. -- Daniel Jacobowitz CodeSourcery