Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Doug Evans <dje@google.com>
Cc: Jan Kratochvil <jan.kratochvil@redhat.com>,
	       gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [patchv2] Support .dwp with the name of symlinked binary file
Date: Mon, 09 Sep 2013 17:53:00 -0000	[thread overview]
Message-ID: <87fvtdkhka.fsf@fleche.redhat.com> (raw)
In-Reply-To: <CADPb22RKV2hHQXHdy4f0vjxhnfjDVA1AzHUpwNh06xu+NejZWw@mail.gmail.com>	(Doug Evans's message of "Fri, 6 Sep 2013 11:29:09 -0700")

>>>>> "Doug" == Doug Evans <dje@google.com> writes:

Doug> Also, it may be that not all objfiles have a bfd (I don't remember off
Doug> hand, but whether it's true or not is irrelevant to my point), and if
Doug> not all objfiles have a bfd we can't just remove objfile->name
Doug> (assuming objfiles-without-bfds have a name).

There are objfiles without a BFD.  E.g., Java makes one.  Maybe the JIT
stuff too.  These do still have a name -- objfiles are required to have
a name.

Doug> OTOH, if objfiles-without-bfds have a name, we could store it in a
Doug> different place (objfile->foo_name), and thus still effectively have
Doug> an implementation that only maintains one name, not two

I don't understand this.  It doesn't seem any different from the present
situation.

I think it is fine if you want to have different names for printing and
for canonical use.  It's also ok to change the BFD cache to work
differently (it realpaths since that is convenient and gets good caching
behavior; but you could store some other form of the path instead and
accept cache misses).

It's worth noting that sometimes it is useful to see the full path.
E.g., it can be a way to notice that gdb or the inferior is doing
something unexpected.

Tom


  reply	other threads:[~2013-09-09 17:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-05 13:18 Jan Kratochvil
2013-09-06 18:29 ` Doug Evans
2013-09-09 17:53   ` Tom Tromey [this message]
2013-09-09 22:59     ` Doug Evans
2013-09-16 19:01   ` Jan Kratochvil
2013-09-16 23:30     ` Doug Evans
2013-09-15 19:40 ` obsolete: " Jan Kratochvil

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=87fvtdkhka.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@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