gdbserver, aarch64: Zero out regs in aarch64_linux_set_debug_regs.
authorWill Newton <willnewton@sourceware.org>
Mon, 16 Sep 2013 14:22:19 +0000 (14:22 +0000)
committerWill Newton <willnewton@sourceware.org>
Mon, 16 Sep 2013 14:22:19 +0000 (14:22 +0000)
Apply the same fix that was applied to aarch64-linux-nat.c.

2013-09-16  Will Newton  <will.newton@linaro.org>

* linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
out regs.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c

index 73191f470349e6540216c741c8ddf383aeef7a97..1082e78c9cfe23be2b33c591444f86160fb8cebb 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-16  Will Newton  <will.newton@linaro.org>
+
+       * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
+       out regs.
+
 2013-09-06  Pedro Alves  <palves@redhat.com>
 
        * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
index e37f602a4f0372de735077c29c3bd267d70c345f..93246b35df0da76c967dc2fcabd5a722fcbe2a41 100644 (file)
@@ -600,6 +600,7 @@ aarch64_linux_set_debug_regs (const struct aarch64_debug_reg_state *state,
   const CORE_ADDR *addr;
   const unsigned int *ctrl;
 
+  memset (&regs, 0, sizeof (regs));
   iov.iov_base = &regs;
   iov.iov_len = sizeof (regs);
   count = watchpoint ? aarch64_num_wp_regs : aarch64_num_bp_regs;
This page took 0.031948 seconds and 4 git commands to generate.