================
@@ -19,7 +19,9 @@ typedef std::vector<pthread_t> thread_vector;
pseudo_barrier_t g_barrier;
int g_breakpoint = 0;
int g_sigusr1_count = 0;
-uint32_t g_watchme;
+
+alignas(16) uint32_t g_watchme;
+uint32_t g_watchme_padding[4];
----------------
Teemperor wrote:
There isn't really anything enforcing that `g_watchme_padding` comes after the
other global. I think the reliable way to fix this is to use a struct global,
like this:
```cpp
#define WATCHPOINT_SIZE 16
struct alignas(WATCHPOINT_SIZE) WatchMePadding {
unsigned data;
char padding_after[WATCHPOINT_SIZE];
} g_watchme;
```
https://github.com/llvm/llvm-project/pull/221697
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits