From: Fabian Cenedese <Cenedese@indel.ch>
To: gdb@sourceware.org
Subject: Re: Wrong source location in symbols
Date: Mon, 11 Dec 2006 16:49:00 -0000 [thread overview]
Message-ID: <5.2.0.9.1.20061211174350.01b23e70@NT_SERVER> (raw)
In-Reply-To: <20061211134111.GA29018@nevyn.them.org>
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
next prev parent reply other threads:[~2006-12-11 16:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-11 10:16 Fabian Cenedese
2006-12-11 13:41 ` Daniel Jacobowitz
2006-12-11 16:49 ` Fabian Cenedese [this message]
2006-12-11 16:50 ` Daniel Jacobowitz
2006-12-12 16:39 ` Fabian Cenedese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5.2.0.9.1.20061211174350.01b23e70@NT_SERVER \
--to=cenedese@indel.ch \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox