mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-21 02:03:10 +00:00
23 lines
684 B
Diff
23 lines
684 B
Diff
--- a/gdb/aarch64-linux-nat.c
|
|
+++ b/gdb/aarch64-linux-nat.c
|
|
@@ -445,7 +445,8 @@
|
|
gdb_assert (regno != -1);
|
|
gdb_assert (tdep->tls_register_count > 0);
|
|
|
|
- uint64_t tpidrs[tdep->tls_register_count] = { 0 };
|
|
+ uint64_t tpidrs[tdep->tls_register_count];
|
|
+ memset (tpidrs, 0, sizeof (tpidrs));
|
|
struct iovec iovec;
|
|
iovec.iov_base = tpidrs;
|
|
iovec.iov_len = sizeof (tpidrs);
|
|
@@ -471,7 +472,8 @@
|
|
gdb_assert (regno != -1);
|
|
gdb_assert (tdep->tls_register_count > 0);
|
|
|
|
- uint64_t tpidrs[tdep->tls_register_count] = { 0 };
|
|
+ uint64_t tpidrs[tdep->tls_register_count];
|
|
+ memset (tpidrs, 0, sizeof (tpidrs));
|
|
|
|
for (int i = 0; i < tdep->tls_register_count; i++)
|
|
{
|