public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: gdb-patches@sourceware.org
Subject: Re: [review] Core file build-id support
Date: Sat, 07 Dec 2019 20:18:00 -0000	[thread overview]
Message-ID: <302e3cb4-a417-de57-a9b2-5f9478a9f236@redhat.com> (raw)
In-Reply-To: <20191205202721.4BC772816F@gnutoolchain-gerrit.osci.io>

On 12/5/19 12:27 PM, Tom Tromey (Code Review) wrote:
> Tom Tromey has posted comments on this change.
> 
> Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/509
> ......................................................................
> 
> 
> Patch Set 1: Code-Review+2
> 
> (1 comment)
> 
> I'm sorry about the delay on this review.

No big deal -- there's still plenty to do in this area!

> This patch looks good.  Impressive test case!  Thank you for doing this.
> 
> I had one nit in a comment, but no need for a re-review.
> 
> One thing I don't understand is how shared libraries work in this scenario.
> How does gdb find the correct version of these from the core file?

That is coming up in a follow-on patch. I don't fully understand it, either,
just yet. I've been attempting to work my way through this recently.

> | --- gdb/build-id.h
> | +++ gdb/build-id.h
> | @@ -39,10 +37,19 @@ /* Find and open a BFD given a build-id.  If no BFD can be found,
> | -   the caller.  */
> | +/* Find and open a BFD for a debuginfo file  given a build-id.  If no BFD
> | +   can be found, return NULL.  The returned reference to the BFD must be
> | +   released by the caller.  */
> |  
> |  extern gdb_bfd_ref_ptr build_id_to_debug_bfd (size_t build_id_len,
> |  					      const bfd_byte *build_id);
> |  
> | +/* Find and open a BFD for an executable file given a build-id.  If no BFD
> | +   can be found, return NULL.  The returned reference to the BFD must be
> | +   released by the caller.  */
> 
> PS1, Line 46:
> 
> This text is just a leftover from before we had ref pointers.
> Now I think it's implicit in the type and can just be left out.
> 

Indeed. Just reading that and seeing gdb_bfd_ref_ptr makes me cringe. Forest,
meet trees.

Thank you for the reivew, I've pushed this.

Keith

  reply	other threads:[~2019-12-07 20:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-04 16:03 Keith Seitz (Code Review)
2019-12-05 20:27 ` Tom Tromey (Code Review)
2019-12-07 20:18   ` Keith Seitz [this message]
2019-12-07 20:17 ` [pushed] " Sourceware to Gerrit sync (Code Review)
2019-12-07 20:17 ` Sourceware to Gerrit sync (Code Review)

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=302e3cb4-a417-de57-a9b2-5f9478a9f236@redhat.com \
    --to=keiths@redhat.com \
    --cc=gdb-patches@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).