Re: RFC: Available registers as a target property

Eli Zaretskii
2005-05-09T20:58:28Z

> Date: Mon, 9 May 2005 11:37:18 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: gdb@sourceware.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.