bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/19315] addr2line change for C++ symbols breaks behavior fo


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/19315] addr2line change for C++ symbols breaks behavior for inlined functions
Date: Wed, 02 Dec 2015 13:28:31 +0000

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 <address@hidden>:

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

commit 923b198a8426f02866f33362b26ed8bbf7a5c5cd
Author: Alan Modra <address@hidden>
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.


reply via email to

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