aboutsummaryrefslogtreecommitdiff
path: root/gdb/aarch64-linux-nat.c
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@cavium.com>2013-09-12 07:14:37 +0000
committerAndrew Pinski <apinski@cavium.com>2013-09-12 07:14:37 +0000
commit1aa4cd774ca674ee6061e2068a410bb67c8bc812 (patch)
tree7e694fa674fe9f1bf7127d109b9a711987e89c1f /gdb/aarch64-linux-nat.c
parentc9ee61e2dd12e1110b81fea6da76c5eb72f08960 (diff)
downloadgdb-1aa4cd774ca674ee6061e2068a410bb67c8bc812.zip
gdb-1aa4cd774ca674ee6061e2068a410bb67c8bc812.tar.gz
gdb-1aa4cd774ca674ee6061e2068a410bb67c8bc812.tar.bz2
2013-09-12 Andrew Pinski <apinski@cavium.com>
* aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
Diffstat (limited to 'gdb/aarch64-linux-nat.c')
-rw-r--r--gdb/aarch64-linux-nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c
index 846f156..f685619 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 (&regs, 0, sizeof (regs));
iov.iov_base = &regs;
iov.iov_len = sizeof (regs);
count = watchpoint ? aarch64_num_wp_regs : aarch64_num_bp_regs;