Hi, Following the patch to bfd to accept size_t when reading objects from memory: http://sourceware.org/ml/gdb-patches/2012-05/msg00988.html here's a patch makes memory reading and writing code consistent with the above change and hence accept size_t for length. This change is not comprehensive, i.e. there are a number of other places (to_xfer_partial and friends) where a similar change should occur, but they're not included in this change since those places already use LONGEST for length and hence won't really be *fixing* anything. These changes on the other hand, are supporting changes for the bitpos and type.length changes: http://sourceware.org/ml/gdb-patches/2012-05/msg00128.html Regards, Siddhesh gdb/ChangeLog: 2012-05-31 Siddhesh Poyarekar * corefile.c (read_memory): Accept LEN argument as size_t. (read_stack): Likewise. (write_memory): Likewise. * gdbcore.h (read_memory): Likewise. (read_stack): Likewise. (write_memory): Likewise. * remote.c (remote_write_bytes_aux): Likewise. (remote_write_bytes): Likewise. * target.c (target_read_stack): Likewise. (target_write_memory): Likewise. (target_write_raw_memory): Likewise. * target.h (target_read_stack): Likewise. (target_write_memory): Likewise. (target_write_raw_memory): Likewise.