bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bfd_find_nearest_line failure with COFF unsorted line number informa


From: Nick Clifton
Subject: Re: bfd_find_nearest_line failure with COFF unsorted line number information
Date: Fri, 16 May 2003 11:46:01 +0100
User-agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (gnu/linux)

Hi Chris,

> I've built binutils-2.13.2 on a power3 machine with AIX 5.1.  I've
> noticed that addr2line and calls to bfd_find_nearest_line fail in
> some cases with applications compiled with IBM VA Fortran compilers
> versions 7.1 and 8.1.
>
> It looks like the coff_find_nearest_line function in bfd/coffgen.c
> is expecting line number information to be sorted by address.  In
> the case of these two compilers, I'm seeing line number information
> that is not sorted.
>
> I made the following naive change which seemed to address the
> problem.

Thank you for reporting this problem.

I am not sure that your solution is the best one however, since in the
majority of cases, with correct compilers producing sorted linenumber
information, the patch will mean a significant slowdown in the time it
takes to lookup line numbers.

A better solution I think would be to add support for a target
specific line number lookup function which, if provided by the target,
would be called before the generic code.  This function could be
defined for AIX 5.1 systems and would handle the unsorted linenumber
information that their Fortran compilers produce.

Would you like to consider making a patch like this instead ?

There is another problem as well, which is that you do not have an FSF
binutils copyright assignment on file.  Without such an assignment we
cannot accept patches from you, much as we might like to.  In case you
do wish to continue looking into this problem, I am attaching a
copyright assignment request form at the end of this email.

Cheers
        Nick

---------------------------------------------------------------------------

request-assign.future:

Please email the following information to address@hidden, and we
will send you the assignment form for your past and future changes.
Please use your full name as the subject line of the message.


[What is the name of the program or package you're contributing to?]


[Did you copy any files or text written by someone else in these changes?
Even if that material is free software, we need to know about it.]


[Do you have an employer who might have a basis to claim to own
your changes?  Do you attend a school which might make such a claim?]


[For the copyright registration, what country are you a citizen of?]


[What year were you born?]


[Please write your email address here.]


[Please write your snail address here.]





[Which files have you changed so far, and which new files have you written
so far?]





---------------------------------------------------------------------------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]