2013-09-11 13:42:29 +00:00
|
|
|
http://permalink.gmane.org/gmane.comp.gdb.patches/88728
|
2013-09-13 07:32:37 +00:00
|
|
|
http://permalink.gmane.org/gmane.comp.gdb.patches/90237
|
2013-09-11 13:42:29 +00:00
|
|
|
|
|
|
|
Index: gdb/aarch64-linux-nat.c
|
|
|
|
===================================================================
|
2013-09-13 07:32:37 +00:00
|
|
|
--- gdb/aarch64-linux-nat.c.orig
|
|
|
|
+++ gdb/aarch64-linux-nat.c
|
2013-09-11 13:42:29 +00:00
|
|
|
@@ -312,6 +312,7 @@ aarch64_linux_set_debug_regs (const stru
|
|
|
|
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;
|
2013-09-13 07:32:37 +00:00
|
|
|
Index: gdb/gdbserver/linux-aarch64-low.c
|
|
|
|
===================================================================
|
|
|
|
--- gdb/gdbserver/linux-aarch64-low.c.orig
|
|
|
|
+++ gdb/gdbserver/linux-aarch64-low.c
|
|
|
|
@@ -600,6 +600,7 @@ aarch64_linux_set_debug_regs (const stru
|
|
|
|
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;
|