This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Available registers as a target property


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]