AArch64: Ensure lwp info is created zeroed
authorAlan Hayward <alan.hayward@arm.com>
Wed, 23 Jan 2019 11:31:40 +0000 (11:31 +0000)
committerAlan Hayward <alan.hayward@arm.com>
Wed, 23 Jan 2019 11:51:34 +0000 (11:51 +0000)
commit6594e122864119d7b1434599c22b112f98e178ca
tree4b5cb58764b89d866431d1352066fd839356056b
parentd99386305c5420754e84b9e6073cb061922f4a27
AArch64: Ensure lwp info is created zeroed

The code to not set empty hardware BPs/WPs on new threads will only work
if the newly allocated struct is empty.

Ensure the structure is created zeroed.

This patch removes the remaining racy behaviour on gdb.threads tests
when run on AArch64 Ubuntu.

gdb/ChangeLog:

* nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
with XCNEW.
gdb/ChangeLog
gdb/nat/aarch64-linux.c
This page took 0.025319 seconds and 4 git commands to generate.