Felipe de Azevedo Piovezan 5e668fe84f
[debugserver] Implement MultiMemRead packet (#162670)
This commit implements, in debugserver, the packet as discussed in the
RFC [1].

[1]:
https://discourse.llvm.org/t/rfc-a-new-vectorized-memory-read-packet/88441
2025-10-15 08:45:35 -07:00

15 lines
437 B
C

#include <stdlib.h>
#include <string.h>
int main(int argc, char **argv) {
char *memory = malloc(1024);
memset(memory, '-', 1024);
// Write "interesting" characters at an offset from the memory filled with
// `-`. This way, if we read outside the range in either direction, we should
// find `-`s`.
int offset = 42;
for (int i = offset; i < offset + 14; i++)
memory[i] = 'a' + (i - offset);
return 0; // break here
}