From: "yamato at redhat dot com" <sourceware-bugzilla@sourceware.org>
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 [thread overview]
Message-ID: <bug-30948-10460-IVCiYYIfRi@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-30948-10460@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=30948
--- Comment #2 from Masatake YAMATO <yamato at redhat dot com> ---
Thank you. With -gdwarf-aranges, the stack command works expectedly.
$ clang -O0 -g -gdwarf-aranges target.c -o target-clang
$ ./target-clang &
[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
--
You are receiving this mail because:
You are on the CC list for the bug.
next prev parent reply other threads:[~2023-11-06 21:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-08 17:22 [Bug libdw/30948] New: " yamato at redhat dot com
2023-11-02 13:25 ` [Bug libdw/30948] " mark at klomp dot org
2023-11-06 21:21 ` yamato at redhat dot com [this message]
2023-11-07 14:43 ` mark at klomp dot org
2024-02-29 22:54 ` amerey at redhat dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-30948-10460-IVCiYYIfRi@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=elfutils-devel@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).