public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: "mark at klomp dot org" <sourceware-bugzilla@sourceware.org>
To: elfutils-devel@sourceware.org
Subject: [Bug tools/25793] eu-readelf -w dumps incomplete even if debuginfod available
Date: Thu, 10 Sep 2020 08:49:59 +0000	[thread overview]
Message-ID: <bug-25793-10460-5RVw9J8SNx@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-25793-10460@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=25793

--- Comment #6 from Mark Wielaard <mark at klomp dot org> ---
I am not against adding something like --debug-dump=follow-links as binutils
does (although binutils readelf even requires it for things like showing e.g.
alt indirect string attributes, which eu-readelf already does automatically).
But I don't think it is a natural fit for readelf, which basically is a data
dumping tool, not something that interprets the data encoding. However as long
as we don't have such a tool (eu-dwarfdump) we could try to fit it in.

Note however that in almost all cases elfutils readelf already "follows links"
unlike binutils, where --dwarf=follow-links is required, for showing alt-file
contents, or with --debug-dump=info+ (which is the default with --debug-dump,
unless =info [without +] is given), for following split-dwarf, dwo, CU
skeletons.

So what this request really is about, is following .gnu_debuglink and/or
build-id .debug searching (including adding debuginfod support).

One question (to show why this isn't completely natural/simple), what do you
expect for something like an DW_TAG_imported_unit (which can be "local" or
through an "alt" link). Should that actually "import" and show that unit in
place? And if so, should we show DW_TAG_partial_units separately (as we do
now), or only if they are actually used/imported to make them "whole"?

The above question is why I feel a new tool like eu-dwarfdump might be a better
"solution". Although we can certainly just make up ad-hoc answers if we add
this "follow-links" support to eu-readelf (but they will feel a little
unnatural imho.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

      parent reply	other threads:[~2020-09-10  8:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-06 15:50 [Bug tools/25793] New: " fche at redhat dot com
2020-04-07 14:10 ` [Bug tools/25793] " mark at klomp dot org
2020-04-07 15:12 ` fche at redhat dot com
2020-06-07 21:04 ` mark at klomp dot org
2020-07-23 19:28 ` woodard at redhat dot com
2020-09-09 23:29 ` woodard at redhat dot com
2020-09-10  8:49 ` mark at klomp dot org [this message]

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-25793-10460-5RVw9J8SNx@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).