This implements functionality to handle DataBreakpointInfo request and
SetDataBreakpoints request.
Previous commit
8c56e78ec5
was reverted because setting 1 byte watchpoint failed in the new test on
ARM64. So, I changed the test to setting 4 byte watchpoint instead, and
hope this won't break it again. It also adds the fixes from
https://github.com/llvm/llvm-project/pull/81680.
18 lines
343 B
C++
18 lines
343 B
C++
int main(int argc, char const *argv[]) {
|
|
// Test for data breakpoint
|
|
int x = 0;
|
|
int arr[4] = {1, 2, 3, 4};
|
|
for (int i = 0; i < 5; ++i) { // first loop breakpoint
|
|
if (i == 1) {
|
|
x = i + 1;
|
|
} else if (i == 2) {
|
|
arr[i] = 42;
|
|
}
|
|
}
|
|
|
|
x = 1;
|
|
for (int i = 0; i < 10; ++i) { // second loop breakpoint
|
|
++x;
|
|
}
|
|
}
|