From: "Richard Earnshaw (lists)" <Richard.Earnshaw@arm.com>
To: Nick Clifton <nickc@redhat.com>, ASSI <Stromeko@nexgo.de>,
binutils@sourceware.org
Subject: Re: Replacement for "objdump -d -l"?
Date: Tue, 22 Aug 2023 13:17:34 +0100 [thread overview]
Message-ID: <7f29c2b4-c4bb-ddb5-3f98-52da7abdf041@arm.com> (raw)
In-Reply-To: <ca56610c-d1c2-245c-34e1-c4e3b462b5f8@redhat.com>
On 15/08/2023 15:15, Nick Clifton via Binutils wrote:
> Hi ASSI,
>
>> Lastly, it seem brittle to parse the output as clearly it is meant to be
>> human readable and might change in future versions
>
> Correct.
>
>> (aside from the fact
>> there doesn't seem to be a documentation of the current format for
>> crying out loud).
>
> Because the output format has evolved rather than being specified by a
> standard.
>
> But to be fair, the output format does not change that much, and
> it could be documented if there really was a need.
>
>
>> I'd be much more content with a format that was
>> designed to be machine readable and fully documented (again llvm has an
>> objdump that produces YAML). Is there something like that in binutils I
>> can use?
>
> No, but it would be nice to have.
>
> A fixed, extensible, machine readable output format would be much
> appreciated
> as a new feature for objdump. All it really needs is someone with the
> time,
> knowledge and motivation to write it.
>
> Cheers
> Nick
>
I think if we were ever to specify a machine-readable format for the
output, we'd probably want to use some structured dumping format, rather
than try to specify the current format more precisely. That would avoid
a lot of parsing problems for readers and also give us a chance of being
able to add new features without breaking every tool that reads the output.
R.
prev parent reply other threads:[~2023-08-22 12:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-07 18:35 ASSI
2023-08-15 14:15 ` Nick Clifton
2023-08-17 18:38 ` ASSI
2023-08-22 12:17 ` Richard Earnshaw (lists) [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=7f29c2b4-c4bb-ddb5-3f98-52da7abdf041@arm.com \
--to=richard.earnshaw@arm.com \
--cc=Stromeko@nexgo.de \
--cc=binutils@sourceware.org \
--cc=nickc@redhat.com \
/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).