[PATCH] Cleanup target memory reading

Mark Kettenis mark.kettenis@xs4all.nl
Wed Jun 28 21:30:00 GMT 2006


> From: Vladimir Prus <ghost@cs.msu.su>
> Date: Wed, 28 Jun 2006 11:55:57 +0400
> 
> Hi,
> at the moment, pretty much every read of target memory goes via 
> target_read_memory, and then via xfer_using_stratum.
> 
> The only exception is the get_target_memory_unsigned function, which calls 
> target_read function. It's the only use of 'target_read'.
> 
> The attached patch removes target_read, and makes get_target_memory_unsigned 
> use target_read_memory.
> 
> OK?

Shouldn't we "fix" target_read() such that it uses
target_read_partial() instead?



More information about the Gdb-patches mailing list