From: Fabian Cenedese <Cenedese@indel.ch>
To: gdb@sourceware.org
Subject: Re: Wrong source location in symbols
Date: Tue, 12 Dec 2006 16:39:00 -0000 [thread overview]
Message-ID: <5.2.0.9.1.20061212102328.0187a8c0@NT_SERVER> (raw)
In-Reply-To: <20061211165025.GA4815@nevyn.them.org>
At 11:50 11.12.2006 -0500, Daniel Jacobowitz wrote:
>On Mon, Dec 11, 2006 at 05:48:24PM +0100, Fabian Cenedese wrote:
>> 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.
>
>It's not set per se; it's looked up when needed. Start with the code
>that prints out the dump and work from there.
It's exactly the minsymbol filename which is set in above mentioned
function and always enclosed with SOFUN_ADDRESS_MAYBE_MISSING.
I found that many symbols get as filename the most recently used
filename (not only write.c) even if it's wrong. It seems like there
are some file symbols missing/not read or in wrong order or whatever.
Apart from one comparison this filename is only used for displaying,
so I guess I shouldn't rely on its content too much. But still...
I leave that for the moment and write in another post about other problems.
Thanks
bye Fabi
prev parent reply other threads:[~2006-12-12 16:39 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
2006-12-11 16:50 ` Daniel Jacobowitz
2006-12-12 16:39 ` Fabian Cenedese [this message]
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.20061212102328.0187a8c0@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