[Bug libdw/30967] Discriminator in Dwarf_Line_s may exceed 24 bits

2023-11-07 Thread vvvvvv at google dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30967 --- Comment #15 from Aleksei Vetrov --- Created attachment 15213 --> https://sourceware.org/bugzilla/attachment.cgi?id=15213&action=edit logger_write.cpp Attaching "logger_write.cpp" and a way to reproduce binary with big discriminator with

[Bug libdw/30967] Discriminator in Dwarf_Line_s may exceed 24 bits

2023-11-07 Thread vvvvvv at google dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30967 --- Comment #14 from Aleksei Vetrov --- Here are investigation results on why this happens in LLVM. It is a new algorithm for assigning "hierarchical discriminator for FSAFDO". >From https://reviews.llvm.org/D102246: #define BASE_DIS_BIT_B

Re: [PATCH 00/14] elfutils: DWARF package (.dwp) file support

2023-11-07 Thread Omar Sandoval
On Fri, Nov 03, 2023 at 12:05:57AM +0100, Mark Wielaard wrote: > Hi Omar, > > On Wed, Sep 27, 2023 at 11:20:49AM -0700, Omar Sandoval wrote: > > This patch series adds support for DWARF package files to libdw and the > > elfutils tools. It supports the GNU DebugFission format for DWARF 4 [1] > > a

Re: [PATCH 13/14] libdw: Apply DWARF package file section offsets where appropriate

2023-11-07 Thread Omar Sandoval
On Thu, Nov 02, 2023 at 11:20:33PM +0100, Mark Wielaard wrote: > Hi Omar, > > On Wed, Sep 27, 2023 at 11:21:02AM -0700, Omar Sandoval wrote: > > The final piece of DWARF package file support is that offsets have to be > > interpreted relative to the section offset from the package index. > > .debu

[Bug libdw/30948] src/stack doesn't show source inforamtion if the target is compiled with clang

2023-11-07 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30948 --- Comment #3 from Mark Wielaard --- See also https://sourceware.org/bugzilla/show_bug.cgi?id=22288 The issue is that we rely on .debug_aranges to know whether a (code) address is described in a particular DWARF CU (and from there which line