https://sourceware.org/bugzilla/show_bug.cgi?id=19315

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Alan Modra <amo...@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=923b198a8426f02866f33362b26ed8bbf7a5c5cd

commit 923b198a8426f02866f33362b26ed8bbf7a5c5cd
Author: Alan Modra <amo...@gmail.com>
Date:   Wed Dec 2 15:46:48 2015 +1030

    addr2line vs. inlined C functions called from C++

    In this case the inlined function doesn't have DW_AT_linkage_name in
    .debug_info, but the language is C++ so find_nearest_line goes looking
    in the symbol table.  Since the function is inlined the enclosing
    non-inline function symbol is returned from _bfd_elf_find_function,
    which is wrong.  This patch only uses a symbol if its address matches.

        PR binutils/19315
        * dwarf2.c (_bfd_elf_find_function): Return symbol matched.
        (_bfd_dwarf2_find_nearest_line): Check symbol returned above
        against dwarf range.
        * elf-bfd.h (_bfd_elf_find_function): Update prototype.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to