From: Andrew Cagney <ac131313@redhat.com>
To: Scott Moser <ssmoser@us.ibm.com>
Cc: Jelmer Vernooij <jelmer@samba.org>,
Eli Zaretskii <eliz@is.elta.co.il>,
gdb-patches@sources.redhat.com
Subject: Re: [PATCH] plugin patch
Date: Wed, 06 Nov 2002 09:14:00 -0000 [thread overview]
Message-ID: <3DC94DD8.10009@redhat.com> (raw)
In-Reply-To: <20021106155151.GA2522@charis.vernstok>
> Plugins won't "know" the API that is used in newer versions of GDB, so
> they can't really decide whether they are or are not compatible with
> it. Only allowing plugins to be loaded with _exactly_ the same version
> as the gdb they are loaded into works well (same way the linux kernel
> does).
That is correct.
Scott,
GDB's internals are undergoing massive change(1) and the various GDB
interfaces reflect this. A plug-in architecture only works when there
is a stable published interface and GDB's current internal interfaces
and mechanisms are about as far from `stable' and `published' as you can
get :-/
Accepting this patch will create a situtation (actually very like the
Linux kernel) where either:
- The plug-in developers play constant catch-up with GDB's evolving
interfaces - every new release will require new plug-in.
- GDB's development stagnates because the plug-in developers depand the
specification and support of an additional external interface (over and
above MI(2)).
With regard to the modules that IBM and other vendors are planning on
writing, can I encourage you to contribute them to the FSF? That way,
the entire Free Software Community would benefit (and this plug-in issue
would be mute :-).
Andrew
(1) Don't believe me? I'm currently commiting patches that eliminates
registers[] from the core of GDB. That interface, for too many many
years, formed part of the foundation on which GDB was built.
(2) A long term MI objective is to define a set of interfaces that both
MI and the CLI can use. FernandoN made reference to this in responce to
your original post.
> If the plugins are using a small number of functions only, you
> might want to consider using an API version number - whenever one of
> these functions changes, you increase the version number. This would
> allow plugins from various gdb versions (but with the same API
> version) to be used without the need of recompiling.
>
> Jelmer
>
next prev parent reply other threads:[~2002-11-06 17:14 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-28 14:01 Scott Moser
2002-10-28 22:28 ` Eli Zaretskii
2002-10-29 7:55 ` Paul A. Clarke
2002-11-06 6:45 ` Scott Moser
2002-11-06 6:56 ` Jelmer Vernooij
2002-11-06 7:13 ` Scott Moser
2002-11-06 7:54 ` Jelmer Vernooij
2002-11-06 9:14 ` Andrew Cagney [this message]
2002-11-06 15:07 ` Paul A. Clarke
2002-11-06 15:56 ` Andrew Cagney
2002-11-07 10:05 ` Paul A. Clarke
2002-11-07 11:57 ` Andrew Cagney
2002-11-07 13:10 ` Klee Dienes
2002-11-06 15:56 ` Andrew Cagney
2002-11-06 7:47 Howell, David P
2002-11-06 7:55 ` Daniel Jacobowitz
2002-11-06 11:12 ` Andrew Cagney
2002-11-06 11:55 ` Paul A. Clarke
2002-11-06 12:29 ` 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=3DC94DD8.10009@redhat.com \
--to=ac131313@redhat.com \
--cc=eliz@is.elta.co.il \
--cc=gdb-patches@sources.redhat.com \
--cc=jelmer@samba.org \
--cc=ssmoser@us.ibm.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