This is the mail archive of the
mailing list for the GDB project.
Re: What's an annex? stratum?
- From: Stan Shebs <stanshebs at earthlink dot net>
- To: Michael Eager <eager at eagercon dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Sat, 23 Jun 2007 11:57:35 -0700
- Subject: Re: What's an annex? stratum?
- References: <467D5FEF.email@example.com>
Michael Eager wrote:
"Annex" is apparently an introduction of Andrew's from 2004, does kind
of look like an address space addition, although not clear that it's
Looking at target.c, I see some terms which are less
than clear: annex and stratum. Could someone tell me
what these mean?
"Stratum" is an old concept, merely a way to talk about different levels
of the target stack. In practice, the stacking concept isn't as clean as
it must have seemed initially; sometimes you really want to run a target
op in a vector down in the stack, sometimes you want to replace a target
vector in the middle. So we introduce strata as a way to find a
mid-stack target vector of a desired type. First big block comment in
target.h goes into a bit more detail.
Probably not much consolation, but I'm having the same trouble with
Mozilla sources these days. :-)
Aside: there are comments in the gdb code which tell me
that the previous code did things badly and that the new
scheme is better. Usually there's no description of the
new scheme. I don't know about others, but I find these
comments are both distracting and unhelpful.