From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2C40A3858C5E; Tue, 10 Oct 2023 09:14:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C40A3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1696929270; bh=kDvNn2f8qfxm21ZfBJCHvTx5fdtWhMtSixXsAZMDKjg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VDcgDHBe1UdNlfa3i7ZIUmQjWGI6Rex+eUsyo+TYRGtuFiNKIG3Jqh0SI/zAb3Q0m ms8AboOtf86t82PnIQyJshTiiAiVb7w6VnD3+LpmOJ28LXFOaO6MYzRYRAylD0sFzs EDmyaSB/lDRQ9tEswJOTOmD2GULlBHmThz+2aikk= From: "mcermak at redhat dot com" To: systemtap@sourceware.org Subject: [Bug tapsets/30407] Tapset function print_ubacktrace_fileline() no longer works with DWARF5 Date: Tue, 10 Oct 2023 09:14:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: tapsets X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mcermak at redhat dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30407 --- Comment #5 from Martin Cermak --- Created attachment 15161 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D15161&action=3Ded= it WIP patch The attached patch doesn't properly parse the .debug_line header (yet) to f= ind correct pointers to the .debug_line_str section. Next version will try to = do that. Demo: ----------------------------------- # cat a.c int main(void) { return 0; } #=20 # gcc -g -gdwarf-5 a.c -o prog5 # gcc -g -gdwarf-4 a.c -o prog4 # # eu-readelf --debug-dump=3Dinfo prog4 | fgrep -i produc producer (strp) "GNU C17 13.1.1 20230614 (Red Hat 13.1.1-4) -mtune=3Dgeneric -march=3Dx86-64 -g -gdwarf-4" # eu-readelf --debug-dump=3Dinfo prog5 | fgrep -i produc producer (strp) "GNU C17 13.1.1 20230614 (Red Hat 13.1.1-4) -mtune=3Dgeneric -march=3Dx86-64 -g -gdwarf-5" #=20 # stap --ldd -e 'probe process.function("main") { print_ubacktrace_fileline= () }' -c ./prog4=20 0x40110a : main+0x4/0xe at /root/test/a.c:2 [/root/test/prog4] 0x7f9d3c42814a : __libc_start_call_main+0x7a/0xb0 [/usr/lib64/libc.so.6] 0x7f9d3c42820b : __libc_start_main@GLIBC_2.2.5+0x8b/0x160 [/usr/lib64/libc.so.6] 0x401045 : _start+0x25/0x30 [/root/test/prog4] #=20 # stap --ldd -e 'probe process.function("main") { print_ubacktrace_fileline= () }' -c ./prog5 0x40110a : main+0x4/0xe at /root/test/a.c:2 [/root/test/prog5] 0x7fba8ae2814a : __libc_start_call_main+0x7a/0xb0 [/usr/lib64/libc.so.6] 0x7fba8ae2820b : __libc_start_main@GLIBC_2.2.5+0x8b/0x160 [/usr/lib64/libc.so.6] 0x401045 : _start+0x25/0x30 [/root/test/prog5] # --=20 You are receiving this mail because: You are the assignee for the bug.=