From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 11A753858D35; Mon, 6 Nov 2023 21:21:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 11A753858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1699305677; bh=xKfV8k3kbeq0i8M/xhutFzUzP8xP4Z2dm3D6OQGSSgs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SPbgPSWTQEPtyjExTA9qQIOyg+1ycpIasK973gFS6LJ+hBJ0aZG+3GDr88mTMq+lh MzA4llqKO7jO1v/iMX+NW/4eRovSAviApTt7SHjTVdgzOcIYtiQ2jDsiPWLflNOiAN n1omdwMw8KVeSjYUhF3+3lZwgzFRu6zwa9Jth/Ow= From: "yamato at redhat dot com" To: elfutils-devel@sourceware.org Subject: [Bug libdw/30948] src/stack doesn't show source inforamtion if the target is compiled with clang Date: Mon, 06 Nov 2023 21:21:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libdw X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yamato at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D30948 --- Comment #2 from Masatake YAMATO --- Thank you. With -gdwarf-aranges, the stack command works expectedly. $ clang -O0 -g -gdwarf-aranges target.c -o target-clang $ ./target-clang &=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 [1] 4104789 $ ./src/stack -s -p 4104789 PID 4104789 - process TID 4104789: #0 0x0000000000401149 f1 /home/yamato/var/elfutils/target.c:4:3 #1 0x0000000000401139 f0 /home/yamato/var/elfutils/target.c:11:10 #2 0x0000000000401124 main /home/yamato/var/elfutils/target.c:16:10 #3 0x00007fb7e9213b8a __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58:16 #4 0x00007fb7e9213c4b __libc_start_main@@GLIBC_2.34 ../csu/libc-start.c:360:3 #5 0x0000000000401045 _start --=20 You are receiving this mail because: You are on the CC list for the bug.=