Files
clang-p2996/lldb/test/API/functionalities/watchpoint/large-watchpoint/main.c
Jason Molenda 2e16e41b28 Add AArch64 MASK watchpoint support in debugserver
Add suport for MASK style watchpoints on AArch64 in debugserver
on Darwin systems, for watching power-of-2 sized memory ranges.
More work needed in lldb before this can be exposed to the user
(because they will often try watching memory ranges that are not
exactly power-of-2 in size/alignment) but this is the first part
of adding that capability.

Differential Revision: https://reviews.llvm.org/D149792
rdar://108233371
2023-05-04 13:23:51 -07:00

17 lines
333 B
C

#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main() {
const int count = 65535;
int *array = (int*) malloc(sizeof (int) * count);
memset (array, 0, count * sizeof (int));
puts ("break here");
for (int i = 0; i < count - 16; i += 16)
array[i] += 10;
puts ("done, exiting.");
}