* linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.

This commit is contained in:
Ulrich Weigand 2008-05-29 11:53:12 +00:00
parent 11701589a8
commit 76b233ddaa
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
* linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
2008-05-09 Doug Evans <dje@google.com>
* server.h (decode_search_memory_packet): Declare.

View File

@ -149,6 +149,9 @@ static void
ppc_collect_ptrace_register (int regno, char *buf)
{
int size = register_size (regno);
memset (buf, 0, sizeof (long));
if (size < sizeof (long))
collect_register (regno, buf + sizeof (long) - size);
else