This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [SH] regs command
On Thu, 17 May 2012, Mark Kettenis wrote:
> > So here it is, this change moves *_tdep initialisers to the end while
> > otherwise keeping the order the same (IOW within the two groups the order
> > remains the same as before). I've checked it against autoconf's tool
> > portability list and also verified it with Solaris sed to make sure
> > there are no surprises.
>
> Sorry, but we've always considered it a mistake to rely on a specific
> order of running the initialization functions. Implicit dependencies
> between modules like that really are a bad idea.
What's the technical reason and what do you propose as the alternative?
Personally I see no problems with a hierarchical structure of initialisers
as long as the hierarchy is well-defined so that people can rely on that.
I can give you a name of a complex project that works very well with such
an arrangement, and they actually have as many as eight levels.
Maciej