summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/process/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/API/python_api/process/main.cpp')
-rw-r--r--lldb/test/API/python_api/process/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/test/API/python_api/process/main.cpp b/lldb/test/API/python_api/process/main.cpp
index f3cc7e12d335..07cde05e2a05 100644
--- a/lldb/test/API/python_api/process/main.cpp
+++ b/lldb/test/API/python_api/process/main.cpp
@@ -21,3 +21,13 @@ int main (int argc, char const *argv[])
return 0; // Set break point at this line and check variable 'my_char'.
// Use lldb Python API to set memory content for my_int and check the result.
}
+
+char test_read (char *ptr)
+{
+ return *ptr;
+}
+
+void test_write (char *ptr, char c)
+{
+ *ptr = c;
+}