From: Pedro Alves <palves@redhat.com>
To: Doug Evans <dje@google.com>,
Andrew Burgess <andrew.burgess@embecosm.com>
Cc: gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH] gdb: New frame_cache_cleared observer.
Date: Tue, 31 Mar 2015 12:08:00 -0000 [thread overview]
Message-ID: <551A8E21.2010103@redhat.com> (raw)
In-Reply-To: <CADPb22R7=Y_aeqaMwBqyfa+BcxT_JadGNGrtFirQkuh-2PfS5w@mail.gmail.com>
On 03/30/2015 07:51 PM, Doug Evans wrote:
> On Thu, Mar 26, 2015 at 5:50 AM, Andrew Burgess
> <andrew.burgess@embecosm.com> wrote:
>> Doug, Pedro,
>>
>> * Pedro Alves <palves@redhat.com> [2015-03-26 09:24:27 +0000]:
>>
>>> On 03/25/2015 11:18 PM, Doug Evans wrote:
>>>> On Wed, Mar 25, 2015 at 10:11 AM, Andrew Burgess
>>>>> However, as I don't have an actual use for this observer that I can
>>>>> post upstream (yet) I don't know if this will be acceptable, but given
>>>>> it's a fairly small change I thought I'd try.
>>
>>> Right. We delete dead code all the time. So it's better to wait until
>>> is has a use, because otherwise someone could well end up stumbling on it,
>>> noticing it has no uses and decides to send a patch that garbage
>>> collects it.
>>
>> Thanks for looking at my patch, and I understand why you've rejected
>> it for now.
>
> It's easy enough to prevent people errantly spending cycles submitting
> a patch to delete such code.
If you mean a comment in the code like "don't delete: this will be
used by an yet-unsubmitted out of tree port, once it's submitted",
I don't agree with that. Should we put a date on the comment? If
I read a comment like that saying "2014/09", I'll wonder whether
the port will be submitted in the tree soon enough. What about
"2013/09"? Or maybe one should bother to look for the right people
and ask them if that is maybe dead already? Etc. It's just better to
avoid such issues.
> OTOH, I'm wondering if a frame-cache-cleared event
> is the right one for your use-case.
*nod* Without seeing the port it's hard to judge.
> I'm guessing this isn't for frame unwinding,
> otherwise you could just use the existing mechanism
> (e.g., frame_unwind.dealloc_cache).
Thanks,
Pedro Alves
prev parent reply other threads:[~2015-03-31 12:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-25 17:11 Andrew Burgess
2015-03-25 23:18 ` Doug Evans
2015-03-26 9:24 ` Pedro Alves
2015-03-26 12:50 ` Andrew Burgess
2015-03-30 18:51 ` Doug Evans
2015-03-31 12:08 ` Pedro Alves [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=551A8E21.2010103@redhat.com \
--to=palves@redhat.com \
--cc=andrew.burgess@embecosm.com \
--cc=dje@google.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