Wrong source location in symbols
Fabian Cenedese
Cenedese@indel.ch
Tue Dec 12 16:39:00 GMT 2006
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
More information about the Gdb
mailing list