This is the mail archive of the
mailing list for the GDB project.
Re: RFC: Available registers as a target property
> Date: Mon, 9 May 2005 11:37:18 -0400
> From: Daniel Jacobowitz <email@example.com>
> Cc: firstname.lastname@example.org
> The target_read_partial interface is not well suited to that because
> the data may be transfered in multiple chunks; each time, we call down
> to the target. The best thing I can think of would be to create the
> data structure once in the target, store it persistently, and then feed
> bits of that data structure back via to_xfer_partial. This requires
> mutable data attached to the target object. Nowadays we can use
> target_ops:to_data for this, so that should be OK.
> This lets the target control the data lifetime. Handy, since it allows
> for const structures for simulator targets, where we know the available
> features at compile time.
> So that should work OK.
Sounds like a good plan.