public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Discussion: Formalizing the deprecation process in GDB
@ 2004-09-27 17:55 Joel Brobecker
  2004-09-27 20:35 ` Eli Zaretskii
  2004-10-06  6:14 ` Andrew Cagney
  0 siblings, 2 replies; 32+ messages in thread
From: Joel Brobecker @ 2004-09-27 17:55 UTC (permalink / raw)
  To: gdb; +Cc: Andrew Cagney, Eli Zaretskii

Per Andrew Cagney's request, I am reposting here a message I sent on
gdb-patches after a long discussion between Andrew and Eli Zaretskii
on when parts of GDB's code can be marked as deprecated and how they
should be marked as deprecated.

Andrew also asked me to post Eli's answer, but I can't find it in
the archives. Sorry Eli, you'll have to resend them.

>It seems to me that the whole discussion between Eli and yourself has
>been beaten to death. We're basically stuck in a disagrement where both
>point of views have their merit.
>
>I think it's time all global maintainers get involved in this discussion
>and make a decision. Once the decision is taken, it needs to be
>documented (gdb.texinfo for instance) so that people can refer to it.
>
>As a developper, I personally dislike to have to check the ARI everytime
>I use anything in GDB for fear of using something deprecated. So marking
>each instance as explicitly deprecated directly in the code is a good
>move. Two questions were asked and need to be answered. I am adding my
>proposed answers, as a starting point for your discussion:
>
>  1. When can some code be declared deprecated?
>
>     IMO, some code should be declared deprecated when it has been
>     recognized that it should no longer be used in new changes.
>     It means that some code can be identified as deprecated before
>     a replacement has been implemented.
>
>     There is a judgement call to make, obviously, as we don't want to
>     deprecate a central piece of GDB that makes it impossible for
>     somebody to submit a new port for instance without doing man-years
>     of work required to implement an alternate to the deprecated
>     feature.
>
>  2. How to identify deprecated code?
>
>     Deprecated code should be explicitly marked as such directly
>     in the code, to avoid any accidental future usage, by prepending
>     "depreated_" to the entity names.
>     
>     Deprecated code can only be removed when no longer used. There can
>     be no time limit imposed between the time some code is deprecated,
>     and the time when it is removed.
>
>     (the alternate solution suggested by Eli is the ARI)
>
>You should decide how the discussion will be held (privately or on
>gdb-patches?), and whether it should include the steering committee
>or not.


-- 
Joel

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2004-10-11 22:00 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-27 17:55 Discussion: Formalizing the deprecation process in GDB Joel Brobecker
2004-09-27 20:35 ` Eli Zaretskii
2004-10-06  6:14 ` Andrew Cagney
2004-10-06 13:39   ` Eli Zaretskii
2004-10-07  4:48     ` Joel Brobecker
2004-10-07 14:27       ` Dave Korn
2004-10-07 15:12         ` Joel Brobecker
2004-10-07 16:16           ` Andrew Cagney
2004-10-07 18:50             ` Dave Korn
2004-10-07 16:14         ` Andrew Cagney
2004-10-07 18:08           ` Dave Korn
2004-10-07 19:18             ` Joel Brobecker
2004-10-07 19:28               ` Dave Korn
2004-10-08  7:08                 ` Joel Brobecker
2004-10-08 12:13                   ` Eli Zaretskii
2004-10-08 12:05               ` Eli Zaretskii
2004-10-08  8:54             ` Fabian Cenedese
2004-10-08 11:45           ` Eli Zaretskii
2004-10-08 19:22             ` Andrew Cagney
2004-10-10 21:31               ` Eli Zaretskii
2004-10-08 10:45         ` Eli Zaretskii
2004-10-08 13:31           ` Dave Korn
2004-10-08 13:38             ` Eli Zaretskii
2004-10-08 13:43               ` Dave Korn
2004-10-08 13:44                 ` Dave Korn
2004-10-08 19:16                 ` Eli Zaretskii
2004-10-08 19:45                   ` Eli Zaretskii
2004-10-08 22:10             ` Andrew Cagney
2004-10-08 10:38       ` Eli Zaretskii
2004-10-11 15:11     ` Andrew Cagney
2004-10-12  7:34       ` Eli Zaretskii
2004-10-12 13:42         ` Mark Kettenis

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).