This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Wrong source location in symbols
- From: Daniel Jacobowitz <drow at false dot org>
- To: Fabian Cenedese <Cenedese at indel dot ch>
- Cc: gdb at sourceware dot org
- Date: Mon, 11 Dec 2006 08:41:12 -0500
- Subject: Re: Wrong source location in symbols
- References: <5.2.0.9.1.20061211104829.0186dcc0@NT_SERVER>
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