bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/23715] addr2line reports null symbol for inline frame


From: mail at milianw dot de
Subject: [Bug binutils/23715] addr2line reports null symbol for inline frame
Date: Wed, 26 Sep 2018 13:42:54 +0000

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

Milian Wolff <mail at milianw dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mail at milianw dot de

--- Comment #1 from Milian Wolff <mail at milianw dot de> ---
Created attachment 11274
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11274&action=edit
correctly pass through name from nested find_abstract_instance calls

The attached patch fixes the issue for me. Apparently the compilers generate
debug information with nested instance, i.e. find_abstract_instance calls
itself in dwarf2.c. In such a scenario, the inner call will correctly set its
pname to the name it found. But the outer call will then override it with name
= NULL at the end of find_abstract_instance.

Fix this by passing the pointer to the name when calling find_abstract_instance
from itself. I've tested this patch with addr2line and perf on the example
source code provided in the bug report. Both work again with this fix applied!

-- 
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]