This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Wrong source location in symbols


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]