diff options
author | Andrew Pinski <apinski@cavium.com> | 2013-09-12 07:14:37 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@cavium.com> | 2013-09-12 07:14:37 +0000 |
commit | 1aa4cd774ca674ee6061e2068a410bb67c8bc812 (patch) | |
tree | 7e694fa674fe9f1bf7127d109b9a711987e89c1f /gdb | |
parent | c9ee61e2dd12e1110b81fea6da76c5eb72f08960 (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/aarch64-linux-nat.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fa3de16..903dcba 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-09-12 Andrew Pinski <apinski@cavium.com> + + * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs. + 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com> * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o. 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 (®s, 0, sizeof (regs)); iov.iov_base = ®s; iov.iov_len = sizeof (regs); count = watchpoint ? aarch64_num_wp_regs : aarch64_num_bp_regs; |