From: Andrew Cagney <cagney@gnu.org>
To: Eli Zaretskii <eliz@elta.co.il>, Kevin Buettner <kevinb@redhat.com>
Cc: drow@mvista.com, gdb-patches@sources.redhat.com
Subject: Re: [commit] Deprecate remaining STREQ uses
Date: Thu, 04 Dec 2003 17:33:00 -0000 [thread overview]
Message-ID: <3FCF6FCA.30607@gnu.org> (raw)
In-Reply-To: <9743-Thu04Dec2003174358+0200-eliz@elta.co.il>
>> Date: Wed, 3 Dec 2003 21:44:04 -0700
>> If a contributor wants to add new code, or fix bugs in existing code,
>>> they should not be increasing the use of existing deprecated mechanisms
>>> (after all we should be able to reasonably expect contributors to not
>>> make matters worse). The prime motivator here should our joint goal to
>>> make GDB the best debgger possible, and more immediatly our desire to
>>> fix bugs such as those identified by my rewritten structs.exp. As for
>>> other code, let it bitrot and die.
>>
>>
>> I agree with much of what you say, but I really can't agree with the
>> last part. There is a quite a lot of code which simply cannot be
>> allowed to "bitrot and die".
Kevin's comment here is way over my head.
Firstly we're actively maintaining and improve our code base, as if we
fail to do this, our code will bitrot and die. This isn't because of
deprecation, rather its because GDB is part of a rapidly chaning world -
GCC changes, the OS changes - and each change creates new and wonderful
requirements while at the same time unearthing old bugs.
An unfortunate consequence of this is that sections of the code base
will fall by the wayside (if they were sufficiently important one of us
would have step up and sort out the mess - as mark has done for the
SPARC). I say let it. We've better things to spend our limited
resources on such as (as eli observed) adding new features and
functionality to GDB.
So, to put it simply, what code?
>> From: Kevin Buettner <kevinb@redhat.com>
>>
>> I have already stated that I think the renaming of deprecated
>> interfaces is okay in some instances. I am concerned, however, that
>> this approach is being used in instances where it doesn't really
>> need to be.
>
>
> Seconded.
>
> Can we conclude this thread by agreeing that renaming of deprecated
> interfaces should be discussed first in cases such as STREQ? I think
> everybody agreed on that at some point.
To speak generally, what happens is:
- an interface is identified as a deprecate candidate
See "deprecate" in the ari for a candidate list - most are macros but
others are cases where the code could do with a refactoring.
- the deprecate candidate gets reviewed, replaced or rewritten
It is at this point that the issue is raised publically, problems in the
old iterface identified and discussed, and the issue resolved. Any old
interfaces get identified as obsolete, ready for the final phase ...
- the now obsolete interface and mechanism get explicitly deprecated
(or removed, depending on how risky it is)
(Of course there are variations on a theme - sometimes the old interface
is deprecated first as that makes the introduction of the new interface
easier.)
So there is already a point at which this deprecate can be discussed.
However, more puzzling is Kevin's generalization that "this approach is
being used in instances where it really doesn't need to be". It
strongly implies that STREQ, rather than being the exception, is the
norm. If if that is the case then more details would be helpful.
Andrew
next prev parent reply other threads:[~2003-12-04 17:33 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-23 21:08 Andrew Cagney
2003-11-24 5:57 ` Eli Zaretskii
2003-11-24 16:41 ` Andrew Cagney
2003-11-24 16:50 ` Daniel Jacobowitz
2003-11-24 18:02 ` David Carlton
2003-11-24 19:36 ` Eli Zaretskii
2003-11-24 18:25 ` Kevin Buettner
2003-11-24 20:03 ` Andrew Cagney
2003-11-25 0:09 ` Kevin Buettner
2003-11-27 14:30 ` Andrew Cagney
2003-11-27 17:27 ` Eli Zaretskii
2003-12-01 15:47 ` Andrew Cagney
2003-12-01 19:08 ` Eli Zaretskii
2003-12-01 19:17 ` Daniel Jacobowitz
2003-12-01 19:22 ` Joel Brobecker
2003-12-01 21:25 ` Andrew Cagney
2003-12-01 21:32 ` Daniel Jacobowitz
2003-12-03 3:47 ` Andrew Cagney
2003-12-03 16:37 ` Andrew Cagney
2003-12-01 19:40 ` Andrew Cagney
2003-12-04 4:44 ` Kevin Buettner
2003-12-04 15:45 ` Eli Zaretskii
2003-12-04 17:33 ` Andrew Cagney [this message]
2003-12-05 16:14 ` Eli Zaretskii
2003-12-12 19:26 ` Kevin Buettner
2003-12-13 1:01 ` Andrew Cagney
2003-11-24 20:32 ` Andrew Cagney
2003-11-24 23:56 ` Kevin Buettner
2003-11-25 1:33 ` Andrew Cagney
2003-11-25 6:51 ` Eli Zaretskii
2003-12-04 4:21 ` Kevin Buettner
2003-11-24 19:33 ` Eli Zaretskii
2003-11-24 19:58 ` Andrew Cagney
2003-11-24 21:06 ` Joel Brobecker
2003-11-26 20:54 ` Andrew Cagney
2003-11-25 6:56 ` Eli Zaretskii
2003-11-24 19:36 ` Andrew Cagney
2003-11-24 20:54 ` Daniel Jacobowitz
2003-11-24 22:08 ` Andrew Cagney
2003-11-24 19:24 ` Eli Zaretskii
2003-11-24 19:45 ` Andrew Cagney
2003-11-25 6:58 ` Eli Zaretskii
2003-11-24 20:06 ` David Carlton
2003-11-25 6:54 ` Eli Zaretskii
2003-11-25 16:59 ` David Carlton
2003-11-25 17:54 ` Andrew Cagney
2003-11-25 17:57 ` Daniel Jacobowitz
2003-11-25 17:59 ` David Carlton
2003-11-25 18:42 ` Andrew Cagney
2003-11-25 19:21 ` Eli Zaretskii
2003-11-25 17:58 ` David Carlton
2003-11-25 18:02 ` Kevin Buettner
2003-11-25 19:14 ` Eli Zaretskii
2003-12-05 16:26 ` Andrew Cagney
2003-12-05 17:56 ` Eli Zaretskii
2003-12-06 14:09 ` Andrew Cagney
2003-12-06 15:23 ` Eli Zaretskii
2003-12-07 15:54 ` Andrew Cagney
2003-11-24 17:48 Michael Elizabeth Chastain
2003-12-03 5:05 Michael Elizabeth Chastain
2003-12-12 19:49 Michael Elizabeth Chastain
2003-12-13 10:18 ` Eli Zaretskii
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=3FCF6FCA.30607@gnu.org \
--to=cagney@gnu.org \
--cc=drow@mvista.com \
--cc=eliz@elta.co.il \
--cc=gdb-patches@sources.redhat.com \
--cc=kevinb@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