From: Andrew Cagney <ac131313@cygnus.com>
To: jtc@redback.com
Cc: GDB Discussion <gdb@sources.redhat.com>
Subject: Re: xfer_memory(..., attrib, ...) post mortem
Date: Wed, 21 Mar 2001 15:59:00 -0000 [thread overview]
Message-ID: <3AB8CF6A.FDBC1B2D@cygnus.com> (raw)
In-Reply-To: <5mitl47zxo.fsf@jtc.redback.com>
"J.T. Conklin" wrote:
> I want to point out that it is possible to take backwards
> compatibility too far. Experience has told me that when you have
> a "flag day" conversion, there is a little pain as loose ends are
> cleaned up, but then it's over and down with. But if backwards
> compatible interfaces are maintained, chances are good that nothing
> will be done. There is no incentive for change. In the end, the
> system is saddled with the complexity of multiple implementations.
Depends on what you mean by ``flag day''.
I can see the following ongoing process occuring:
o new interfaces being introduced
(see gdbarch_register_{read,write})
o redundant interfaces (from above)
being deprecated or deleted
o targets that are full of deprecated
code being obsoleted.
The emphasis being on a continuum of change rather than single ``flag
days''. That way, at any stage, GDB should still be working and
stable. I could, in theory, cut a new GDB release at any time - the
project shouldn't be able to go down the rat hole of wildly osolating
between radical new development and stablizing for the next release.
However, I do see something very similar to a ``flag day'' looming. A
line needs to be draw in the sand after which point any target (read x86
and arm) that isn't using gdbarch will be obsoleted.
That line should probably be called ``5.2''.
> In short, I have no problems with global changes with unforseen rough
> edges that get cleaned up in a few days for actively maintained
> targets, and perhaps a bit longer for those targets that aren't.
> I believe this results in better code in the long term, and the
> occasional pain isn't great enough to outweigh this.
I'm expecting to see the following process:
o a new interface being introduced
o where applicable legacy code
for the previous interface being
provided.
o that new interface evolve and
stablize.
This is important, it allows the
new interface to stablize without
the need to constantly change all
the existing targets.
o the old/redundant interfaces be
deprecated and/or that code be updated
This is probably where GDB has
been falling down. I intend
being really agressive with
applying the mechanical operation
s/interface/deprecated_interface/.
As an example, consider the gdbarch_register_{read,write} and associated
changes. I wouldn't expect existing code to rush out and use this now.
Rather, I'd expect people maintaining existing targets to wait a little
and then leap frog the current interface going straght to what is
hopefully the final version.
Any way, in the end it is a balancing act between keeping GDB stable and
allowing new development :-)
Andrew
next prev parent reply other threads:[~2001-03-21 15:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-21 15:59 Andrew Cagney
2001-03-21 15:59 ` Fernando Nasser
2001-03-21 15:59 ` J.T. Conklin
2001-03-21 15:59 ` Andrew Cagney [this message]
2001-03-21 15:59 ` J.T. Conklin
2001-05-10 8:33 ` Andrew Cagney
2001-03-23 9:30 ` 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=3AB8CF6A.FDBC1B2D@cygnus.com \
--to=ac131313@cygnus.com \
--cc=gdb@sources.redhat.com \
--cc=jtc@redback.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