Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing/bad address line handling #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bluewww
Copy link

@bluewww bluewww commented Oct 4, 2018

This commit fixes (indirectly) _bfd_dwarf2_find_nearest_line, which returns
bogus results in certain occasions (e.g. when therere are line numbers which
refer to address 0 in the dwarf section). Also sometimes it didn't return
anything at all which was visible in objdump even though the debug sections had
the necessary information.

original commit from riscv-binutils-1.30:
20230942fe3674150ab661738d72f1618b3d4b1b

original message:
PR21957, addr2line incorrectly handles non-increasing sequences in line table

        PR 21957
        * dwarf2.c (new_line_sorts_after): Remove end_sequence comparison.
        (add_line_info): Always put end_sequence last.

This commit fixes (indirectly) _bfd_dwarf2_find_nearest_line, which returns
bogus results in certain occasions (e.g. when therere are line numbers which
refer to address 0 in the dwarf section). Also sometimes it didn't return
anything at all which was visible in objdump even though the debug sections had
the necessary information.

original commit from riscv-binutils-1.30:
20230942fe3674150ab661738d72f1618b3d4b1b

original message:
PR21957, addr2line incorrectly handles non-increasing sequences in line table

            PR 21957
            * dwarf2.c (new_line_sorts_after): Remove end_sequence comparison.
            (add_line_info): Always put end_sequence last.
gtagliavini added a commit that referenced this pull request Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant