From: Andrew Pinski Date: Thu, 12 Sep 2013 07:14:37 +0000 (+0000) Subject: 2013-09-12 Andrew Pinski X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1aa4cd774ca674ee6061e2068a410bb67c8bc812;p=binutils-gdb.git 2013-09-12 Andrew Pinski * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fa3de16d408..903dcba7ee4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-09-12 Andrew Pinski + + * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs. + 2013-09-10 Andreas Arnez * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o. diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c index 846f1562ab6..f68561944d5 100644 --- a/gdb/aarch64-linux-nat.c +++ b/gdb/aarch64-linux-nat.c @@ -312,6 +312,7 @@ aarch64_linux_set_debug_regs (const struct aarch64_debug_reg_state *state, const CORE_ADDR *addr; const unsigned int *ctrl; + memset (®s, 0, sizeof (regs)); iov.iov_base = ®s; iov.iov_len = sizeof (regs); count = watchpoint ? aarch64_num_wp_regs : aarch64_num_bp_regs;