4 // This simple program is to test the lldb Python API related to process.
6 static char my_char
= 'u';
7 char my_cstring
[] = "lldb.SBProcess.ReadCStringFromMemory() works!";
8 char *my_char_ptr
= (char *)"Does it work?";
9 uint32_t my_uint32
= 12345;
12 int main (int argc
, char const *argv
[])
14 for (int i
= 0; i
< 3; ++i
) {
15 printf("my_char='%c'\n", my_char
);
19 printf("after the loop: my_char='%c'\n", my_char
); // 'my_char' should print out as 'x'.
21 return 0; // Set break point at this line and check variable 'my_char'.
22 // Use lldb Python API to set memory content for my_int and check the result.
25 char test_read (char *ptr
)
30 void test_write (char *ptr
, char c
)