diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 87ffb54a42f..29203fe3ff7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-03-07 Pedro Alves + + * corefile.c (read_memory_string): Cast pointer to gdb_byte* in + call. + 2013-03-07 Keith Seitz * breakpoint.c (catch_syscall_split_args): Use skip_spaces. diff --git a/gdb/corefile.c b/gdb/corefile.c index b268d4cbc05..9c795b85580 100644 --- a/gdb/corefile.c +++ b/gdb/corefile.c @@ -331,7 +331,7 @@ read_memory_string (CORE_ADDR memaddr, char *buffer, int max_len) cnt = max_len - (cp - buffer); if (cnt > 8) cnt = 8; - read_memory (memaddr + (int) (cp - buffer), cp, cnt); + read_memory (memaddr + (int) (cp - buffer), (gdb_byte *) cp, cnt); for (i = 0; i < cnt && *cp; i++, cp++) ; /* null body */