* symfile-mem.c: Change gdb_static_assert to ssize_t.
	(target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
	* target.c (target_read_memory): Change LEN to ssize_t.
	* target.h (target_read_memory): Change LEN to ssize_t.
This commit is contained in:
Jan Kratochvil
2012-06-05 21:18:05 +00:00
parent 8556afb4f5
commit 1b162304d1
4 changed files with 12 additions and 5 deletions

View File

@@ -1756,7 +1756,7 @@ target_xfer_partial (struct target_ops *ops,
it makes no progress, and then return how much was transferred). */
int
target_read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, size_t len)
target_read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
{
/* Dispatch to the topmost target, not the flattened current_target.
Memory accesses check target->to_has_(all_)memory, and the