* linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
This commit is contained in:
parent
11701589a8
commit
76b233ddaa
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user