From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: CONFIG_DEBUG_INFO_SPLIT impacts on faddr2line Date: Mon, 13 Nov 2017 13:41:48 -0800 Message-ID: <20171113214148.GP8522@tassilo.jf.intel.com> References: <20171108094832.qxvkawpw2snpcbvh@wfg-t540p.sh.intel.com> <20171108171230.ccf7lwutjysk26fc@wfg-t540p.sh.intel.com> <20171113011338.3qmnp64pttyscuus@wfg-t540p.sh.intel.com> <20171113185227.GM8522@tassilo.jf.intel.com> <20171113201013.GO8522@tassilo.jf.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Fengguang Wu , Jeff Kirsher , Network Development , "David S. Miller" , Linux Kernel Mailing List , intel-wired-lan@lists.osuosl.org, Michal Marek , Sam Ravnborg , Dirk Gouders , Linux Kbuild mailing list , kbuild test robot , "Zhang, Rui" , "Lu, Aaron" , "H.J. Lu" To: Linus Torvalds Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kbuild-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Mon, Nov 13, 2017 at 12:56:31PM -0800, Linus Torvalds wrote: > On Mon, Nov 13, 2017 at 12:10 PM, Andi Kleen wrote: > > > > You're right. It works for line information, but strangely not for > > inlines. I assume it can be fixed. > > So I'm not 100% sure it's strictly a addr2line bug. It seems to be broken for normal programs too $ cat tinline.c int i; static inline int finline(void) { i++; } main() { finline(); } $ gcc -O2 -gsplit-dwarf tinline.c $ addr2line -i -e a.out 0x4003b0 /home/ak/tsrc/tinline.c:6 $ gcc -O2 -g tinline.c $ addr2line -i -e a.out 0x4003b0 /home/ak/tsrc/tinline.c:6 /home/ak/tsrc/tinline.c:12 $ I filed https://sourceware.org/bugzilla/show_bug.cgi?id=22434 -Andi