From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33798 invoked by alias); 4 Jan 2017 18:15:45 -0000 Mailing-List: contact libabigail-help@sourceware.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: libabigail-owner@sourceware.org Received: (qmail 33404 invoked by uid 48); 4 Jan 2017 18:15:28 -0000 From: "andrew.c.morrow at gmail dot com" To: libabigail@sourceware.org Subject: [Bug default/21023] New: The abidw tool does not appear to read dwarf from .dwp files associated with executables Date: Sun, 01 Jan 2017 00:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: libabigail X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: andrew.c.morrow at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dodji at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2017-q1/txt/msg00001.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D21023 Bug ID: 21023 Summary: The abidw tool does not appear to read dwarf from .dwp files associated with executables Product: libabigail Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: default Assignee: dodji at redhat dot com Reporter: andrew.c.morrow at gmail dot com CC: libabigail at sourceware dot org Target Milestone: --- $ abidw --version 1.0.rc7 I'm not actually sure if this is a bug in libabigail, or one of the support= ing libraries like libelf or libdw, but I'm starting here, since the end state I want is that abidw works binaries built using DebugFission. I would expect that abidw would search for DWARF info in the associated .dwp file, however, it does not appear to do so. On my Ubuntu 16.04 machine: $ g++ --version g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 $ dwp --version GNU dwp (GNU Binutils for Ubuntu) 2.26.1 $ cat hello_world.cpp #include #include int main(int argc, char* argv[]) { std::cout << "Hello, World!\n" << argc; return EXIT_SUCCESS; } $ g++ -g ./hello_world.cpp -o hello_world $ abidw ./hello_world | cksum 1150852500 53174 $ g++ -gsplit-dwarf -g ./hello_world.cpp -o hello_world $ dwp -e ./hello_world $ abidw ./hello_world | cksum 2156308181 1319 As you can see from the sizes, running abidw against the DebugFission versi= on results in severely truncated output. Running under strace appears to confi= rm that the dwp file was never stat'ed or read: $ strace -f -o trace abidw ./hello_world | cksum 2156308181 1319 $ grep -c dwp trace 0 --=20 You are receiving this mail because: You are on the CC list for the bug.