]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdbserver, aarch64: Zero out regs in aarch64_linux_set_debug_regs.
authorWill Newton <willnewton@sourceware.org>
Mon, 16 Sep 2013 15:54:50 +0000 (15:54 +0000)
committerWill Newton <willnewton@sourceware.org>
Mon, 16 Sep 2013 15:54:50 +0000 (15:54 +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 0d679edf0f5be4e3424373092aacebae0df8b4f4..514bbcb68d2745d61c00c5a891e88b9081db78f6 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-08-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        PR server/15604
index 9dcfc55faa4c1ebb9a9ce1ee2bf7a7b1bd8e913f..97f701d0374bbde08b030e03c174fa83de9c636f 100644 (file)
@@ -602,6 +602,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;