* linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 29 May 2008 11:53:12 +0000 (11:53 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Thu, 29 May 2008 11:53:12 +0000 (11:53 +0000)
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-ppc-low.c

index 37d192aade10266d5ded2a9486d5ea13570e195e..7a7afcc61a1c28339c5fdb5355c18d546734e060 100644 (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.
index 84f9d374e92fcf717194b430e3eccbb802c48913..c03b50a2cf1b17a1176449d99408af8eb606f710 100644 (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