Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Mark Kettenis <kettenis@chello.nl>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfa/i386] Make codestream deprecated?
Date: Wed, 08 Jan 2003 20:18:00 -0000	[thread overview]
Message-ID: <3E1C878B.2050607@redhat.com> (raw)
In-Reply-To: <86bs3yoxc7.fsf@elgar.kettenis.dyndns.org>

> Andrew Cagney <ac131313@redhat.com> writes:
> 
> 
>> 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
>> 
>> 	* i386-tdep.c: Replace `codestream' with `deprecated_codestream'.
> 
> 
> Sorry, but I'm not really enthousiastic about this patch.  IMHO a
> comment explaining the reason why one shouldn't copy this bit of code
> would be much better.  I'm willing to rip out this bit of code, and
> replace it with something cleaner and simpler, but this "deprication"
> is only noise to me.

I'll add a comment.  Briefly it will read:

``The deprecated codestream mechanism is entirely redundant.  The dcache 
superseeds it, providing a generic mechanism for caching both 
instruction and data values.  If the dcache has problems or limitations 
than that, and not this code, needs to be fixed.''

While you might think of marking this as deprecated as noice, as I noted 
to Daniel, it has a very real and direct objective:

> Been there, tried that.  As best I can tell, the only thing that makes someone stop and think, is the word deprecated in the name.  Coders don't always read the comments, reviewers can't keep track of everything that is being eliminated :-/

If I don't do this, I find I get a (lets say) less than favourable 
reception when asking a contributor to not [re]use a mechanism 
identified as deprecated via either a comment or bug report.  cf, this 
very code block when cloned into another architecture; or the regcache 
code before I went through and marked much of that as deprecated.

On the other hand, if the code is clearly marked as deprecated, it 
clarifies this situtation - a patch either clearly is or isn't 
using/copying a deprecated mechanism - go directly to goal, do not pass 
go, do not submit patch :-)

So ok?

enjoy,
Andrew



  reply	other threads:[~2003-01-08 20:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-01 16:39 Andrew Cagney
2002-12-01 17:02 ` Daniel Jacobowitz
2002-12-01 17:51   ` Andrew Cagney
2002-12-07 10:16 ` Mark Kettenis
2003-01-08 20:18   ` Andrew Cagney [this message]
2003-01-08 20:31     ` Daniel Jacobowitz
2003-01-08 21:03       ` Andrew Cagney
2003-01-08 21:13         ` Daniel Jacobowitz
2003-01-08 21:19           ` Daniel Jacobowitz
2003-01-08 22:43             ` Andrew Cagney
2003-01-30  3:31 ` Andrew Cagney

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=3E1C878B.2050607@redhat.com \
    --to=ac131313@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kettenis@chello.nl \
    /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