This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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] |
I've prototyped a fix which slightly alters BFD's interface, adding a bfd_vma* parameter to bfd_find_nearest_line that returns the address of the next source line (where possible; otherwise it returns the requested address).
This seems to have one flaw, however. Sometimes, due to instruction reordering at higher optimisation levels, a source line B can begin at an address that lies between the start and end of source line A. With my patch, that source line will not appear in the profile output. I'm not quite sure how to handle this, nor am I sure if this would be considered catastrophic.
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |