* [Bug tools/28951] New: eu-addr2line produces relative path names, should be absolute
@ 2022-03-08 20:35 fche at redhat dot com
2022-03-08 20:54 ` [Bug tools/28951] " mark at klomp dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: fche at redhat dot com @ 2022-03-08 20:35 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28951
Bug ID: 28951
Summary: eu-addr2line produces relative path names, should be
absolute
Product: elfutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: tools
Assignee: unassigned at sourceware dot org
Reporter: fche at redhat dot com
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
The behaviour binutils addr2line is more helpful, in that it prefixes relative
source filenames with the CU cwd. This behaviour would make it more useful to
tools that mechanically process the source file names.
(echo 0; echo 0585b0) | addr2line -e `debuginfod-find debuginfo
07ae52cfc7f4eda1d13383c04564e3236e059993`
??:0
/usr/src/debug/glibc-2.32-10.fc33.x86_64/math/../sysdeps/ieee754/float128/../ldbl-128/e_jnl.c:316
(echo 0; echo 0585b0) | eu-addr2line -e `debuginfod-find debuginfo
07ae52cfc7f4eda1d13383c04564e3236e059993`
??:0
../sysdeps/ieee754/float128/../ldbl-128/e_jnl.c:316:1
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tools/28951] eu-addr2line produces relative path names, should be absolute
2022-03-08 20:35 [Bug tools/28951] New: eu-addr2line produces relative path names, should be absolute fche at redhat dot com
@ 2022-03-08 20:54 ` mark at klomp dot org
2022-03-08 22:41 ` fche at redhat dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: mark at klomp dot org @ 2022-03-08 20:54 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28951
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
eu-readelf does have:
-A, --absolute Show absolute file names using compilation
directory
Which produces:
$ (echo 0; echo 0585b0) | eu-addr2line -A -e `debuginfod-find debuginfo
07ae52cfc7f4eda1d13383c04564e3236e059993`
??:0
/usr/src/debug/glibc-2.32-10.fc33.x86_64/math/../sysdeps/ieee754/float128/../ldbl-128/e_jnl.c:316:1
We could make that the default maybe?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tools/28951] eu-addr2line produces relative path names, should be absolute
2022-03-08 20:35 [Bug tools/28951] New: eu-addr2line produces relative path names, should be absolute fche at redhat dot com
2022-03-08 20:54 ` [Bug tools/28951] " mark at klomp dot org
@ 2022-03-08 22:41 ` fche at redhat dot com
2022-03-11 14:53 ` mark at klomp dot org
2022-03-14 12:07 ` mark at klomp dot org
3 siblings, 0 replies; 5+ messages in thread
From: fche at redhat dot com @ 2022-03-08 22:41 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28951
--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> ---
Sorry for not noticing the flag. Making it default would let it match
binutils. (Both also have the "-s" option for basename.)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tools/28951] eu-addr2line produces relative path names, should be absolute
2022-03-08 20:35 [Bug tools/28951] New: eu-addr2line produces relative path names, should be absolute fche at redhat dot com
2022-03-08 20:54 ` [Bug tools/28951] " mark at klomp dot org
2022-03-08 22:41 ` fche at redhat dot com
@ 2022-03-11 14:53 ` mark at klomp dot org
2022-03-14 12:07 ` mark at klomp dot org
3 siblings, 0 replies; 5+ messages in thread
From: mark at klomp dot org @ 2022-03-11 14:53 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28951
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at sourceware dot org |mark at klomp dot org
--- Comment #3 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Frank Ch. Eigler from comment #2)
> Making it default would let it match binutils.
> (Both also have the "-s" option for basename.)
Matching binutils addr2line would be good.
I also added a new --relative option to get the old default back.
(-s, --basenames, isn't exactly the same)
https://sourceware.org/pipermail/elfutils-devel/2022q1/004681.html
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tools/28951] eu-addr2line produces relative path names, should be absolute
2022-03-08 20:35 [Bug tools/28951] New: eu-addr2line produces relative path names, should be absolute fche at redhat dot com
` (2 preceding siblings ...)
2022-03-11 14:53 ` mark at klomp dot org
@ 2022-03-14 12:07 ` mark at klomp dot org
3 siblings, 0 replies; 5+ messages in thread
From: mark at klomp dot org @ 2022-03-14 12:07 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28951
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Mark Wielaard <mark at klomp dot org> ---
commit 9e39d31c4ec1c8f7eb16886f8b7fd04c0a4f2462
Author: Mark Wielaard <mark@klomp.org>
Date: Fri Mar 11 15:44:21 2022 +0100
addr2line: Make --absolute the default, add --relative option.
Make --absolute (including the compilation directory in file names)
the default and add a new option --relative to get the previous
default behavior.
https://www.sourceware.org/bugzilla/show_bug.cgi?id=28951
Signed-off-by: Mark Wielaard <mark@klomp.org>
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-03-14 12:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-08 20:35 [Bug tools/28951] New: eu-addr2line produces relative path names, should be absolute fche at redhat dot com
2022-03-08 20:54 ` [Bug tools/28951] " mark at klomp dot org
2022-03-08 22:41 ` fche at redhat dot com
2022-03-11 14:53 ` mark at klomp dot org
2022-03-14 12:07 ` mark at klomp dot org
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).