This is the mail archive of the
mailing list for the GDB project.
Re: [RFA] Use data cache for stack accesses
On Wednesday 08 July 2009 21:51:40, Daniel Jacobowitz wrote:
> Or could we store a dcache per-inferior? ?Jacob's right - I thought
> there was an 'inferior_data' to store arbitrary data per-inferior,
> but there isn't. ?I don't like baking knowledge into other modules
> of GDB that they can extract the PID and use it to key per-inferior
> Or just add it to struct inferior?
The reason I didn't suggest that is that we don't have an
address space object --- yet. My multi-exec patches add one, and
there's a similar mechanism to per-objfile data where we can
do things like these. More than one inferior can share the
same address space, so we could share a cache between them, but,
if the cache if write-through, it won't be a big problem if we
don't --- it would be if it was left as writeback.
I don't have a problem with adding this to struct inferior for now,
it just seemed premature.