aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-aarch64-low.c
diff options
context:
space:
mode:
authorWill Newton <willnewton@sourceware.org>2013-09-16 14:22:19 +0000
committerWill Newton <willnewton@sourceware.org>2013-09-16 14:22:19 +0000
commitc623a6ef72a8d7dbbb646345f75646710cb9bb68 (patch)
treeb6bb1d3c9f9c62a194239081588b7d6bec944cae /gdb/gdbserver/linux-aarch64-low.c
parent04a83fee11b7074fc1d7a2a6ea13c3a12f87b290 (diff)
downloadgdb-c623a6ef72a8d7dbbb646345f75646710cb9bb68.zip
gdb-c623a6ef72a8d7dbbb646345f75646710cb9bb68.tar.gz
gdb-c623a6ef72a8d7dbbb646345f75646710cb9bb68.tar.bz2
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 <will.newton@linaro.org> * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero out regs.
Diffstat (limited to 'gdb/gdbserver/linux-aarch64-low.c')
-rw-r--r--gdb/gdbserver/linux-aarch64-low.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c
index e37f602..93246b3 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 (&regs, 0, sizeof (regs));
iov.iov_base = &regs;
iov.iov_len = sizeof (regs);
count = watchpoint ? aarch64_num_wp_regs : aarch64_num_bp_regs;