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: Thu, 10 Dec 2015 13:51:11 +0000

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

--- Comment #8 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The binutils-2_26-branch branch has been updated by Alan Modra
<address@hidden>:

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

commit 6ae72d11333f98d2366c35b98c7fc9db6ff25551
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]