Files
termux-packages/packages/gdb/gdb-aarch64-linux-nat.c.patch
termux-pacman-bot 4cfb734160 gdb: Bump to 13.1
2023-02-21 01:30:53 +00:00

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++)
{