mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 12:03:41 +08:00
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.
This commit is contained in:
parent
04a83fee11
commit
c623a6ef72
@ -1,3 +1,8 @@
|
||||
2013-09-16 Will Newton <will.newton@linaro.org>
|
||||
|
||||
* linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
|
||||
out regs.
|
||||
|
||||
2013-09-06 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user