From: Doug Evans <dje@google.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches <gdb-patches@sourceware.org>,
Pedro Alves <palves@redhat.com>,
Sergio Durigan Junior <sergiodj@redhat.com>
Subject: Re: [PATCH 2/4] python support for fetching separate debug files: have_debug_info
Date: Mon, 24 Nov 2014 21:06:00 -0000 [thread overview]
Message-ID: <CADPb22TuyWsyT4W2jHZk820SYvw-vsdFDt+8x5RS=MwWTaWNFw@mail.gmail.com> (raw)
In-Reply-To: <CADPb22S8A_bwAqUF6wpShQXyBQ62M0kfdCUG2vZsNASODyN0fg@mail.gmail.com>
On Fri, Nov 21, 2014 at 12:22 PM, Doug Evans <dje@google.com> wrote:
> Another way we *could* go, which I kinda like, is to provide a general
> purpose ELF API to Python, or try to do the bfd kind of thing and
> abstract away ELF vs COFF, etc, and export that through gdb. Then one
> could determine if debug info is present that way. If I were to do the
> former (the ELF API) I'd like to make it separate from gdb: why write
> something only some users can use. The latter (abstract away the file
> format) has its own problems of course, but one might simplify it to
> something along the lines of what libiberty/simple-object* provides.
> Either of these solutions allows one to watch for a special section
> pointing at separate debug info (e.g., .gnu_debuglink).
>
> [Down the road exporting a DWARF reader to Python would be useful too,
> but that's later. If it involved providing our own libelf/libdwarf so
> much the better.]
Filing for reference sake.
Another way to go, which I partially implemented,
was to export bfd's iovec to Python.
In the end it was more complex than I needed.
prev parent reply other threads:[~2014-11-24 21:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-20 21:22 Doug Evans
2014-11-21 7:41 ` Eli Zaretskii
2014-11-21 17:34 ` Doug Evans
2014-11-21 19:51 ` Eli Zaretskii
2014-11-21 20:22 ` Doug Evans
2014-11-22 8:04 ` Eli Zaretskii
2014-11-24 21:06 ` Doug Evans [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='CADPb22TuyWsyT4W2jHZk820SYvw-vsdFDt+8x5RS=MwWTaWNFw@mail.gmail.com' \
--to=dje@google.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
--cc=sergiodj@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