From: Will Newton Date: Mon, 16 Sep 2013 14:22:19 +0000 (+0000) Subject: gdbserver, aarch64: Zero out regs in aarch64_linux_set_debug_regs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c623a6ef72a8d7dbbb646345f75646710cb9bb68;p=binutils-gdb.git gdbserver, aarch64: Zero out regs in aarch64_linux_set_debug_regs. Apply the same fix that was applied to aarch64-linux-nat.c. 2013-09-16 Will Newton * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero out regs. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 73191f47034..1082e78c9cf 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2013-09-16 Will Newton + + * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero + out regs. + 2013-09-06 Pedro Alves * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h) diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c index e37f602a4f0..93246b35df0 100644 --- a/gdb/gdbserver/linux-aarch64-low.c +++ b/gdb/gdbserver/linux-aarch64-low.c @@ -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 (®s, 0, sizeof (regs)); iov.iov_base = ®s; iov.iov_len = sizeof (regs); count = watchpoint ? aarch64_num_wp_regs : aarch64_num_bp_regs;