[Lldb-commits] [lldb] [lldb] Fix and speedup the `memory find` command (PR #104193)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 28 09:29:06 PDT 2024


================
@@ -1,9 +1,79 @@
-#include <stdio.h>
-#include <stdint.h>
-
-int main (int argc, char const *argv[])
-{
-    const char* stringdata = "hello world; I like to write text in const char pointers";
-    uint8_t bytedata[] = {0xAA,0xBB,0xCC,0xDD,0xEE,0xFF,0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88,0x99};
-    return 0; // break here
+#include <cstdint>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
+#include <initializer_list>
+#include <iostream>
+
+// allocate_memory_with_holes returns a pointer to five pages of memory, where
+// the second and fourth page in the range are inaccessible (even to debugging
+// APIs). We use this to test lldb's ability to skip over in accessible blocks.
----------------
DavidSpickett wrote:

inaccessible as one word

https://github.com/llvm/llvm-project/pull/104193


More information about the lldb-commits mailing list