On Mon, 4 Jun 2012 23:54:19 +0200, Jan wrote: > > Unless someone else is going to protect all the hundreds/thousands of > callers I do not think it is worth it and ssize_t is good enough. > OK, thanks for the explanation. Updated patch attached. Regards, Siddhesh gdb/ChangeLog: 2012-06-05 Siddhesh Poyarekar * corefile.c (read_memory): Accept LEN argument as ssize_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.