[PATCH] Cleanup target memory reading

Vladimir Prus ghost@cs.msu.su
Wed Jun 28 07:56:00 GMT 2006


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?

- Volodya

2006-06-28  Vladimir Prus  <vladimir@codesourcery.com>

            * target.h (target_read): Remove
            (get_target_memory): Remove.
            * target.c (target_read): Remove
            (get_target_memory): Remove.
            (get_target_memory_unsigned): Use target_read_memory.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: target_read.diff
Type: text/x-diff
Size: 3065 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20060628/0f0aa47f/attachment.bin>


More information about the Gdb-patches mailing list