summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/process/main.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-03-01 22:56:31 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-03-01 22:56:31 +0000
commitcf386e24ab4ea80411515e62904002a66f1ff576 (patch)
tree69123dbb4bb851d8f3f88d9913aeccda466e77bf /lldb/test/python_api/process/main.cpp
parent51477bd0d0ede9879a25138d79481e9c53f9836c (diff)
downloadbcm5719-llvm-cf386e24ab4ea80411515e62904002a66f1ff576.tar.gz
bcm5719-llvm-cf386e24ab4ea80411515e62904002a66f1ff576.zip
Add an API SBProcess::GetByteOrder() and add test cases which utilizes GetByteOrder(),
among other SBProcess APIs, to write (int)256 into a memory location of a global variable (int)my_int and reads/checks the variable afterwards. llvm-svn: 126792
Diffstat (limited to 'lldb/test/python_api/process/main.cpp')
-rw-r--r--lldb/test/python_api/process/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/test/python_api/process/main.cpp b/lldb/test/python_api/process/main.cpp
index 0d507b9f3b4..4d5b5e6d7e9 100644
--- a/lldb/test/python_api/process/main.cpp
+++ b/lldb/test/python_api/process/main.cpp
@@ -11,6 +11,7 @@
// This simple program is to test the lldb Python API related to process.
char my_char = 'u';
+int my_int = 0;
int main (int argc, char const *argv[])
{
@@ -22,4 +23,5 @@ int main (int argc, char const *argv[])
printf("after the loop: my_char='%c'\n", my_char); // 'my_char' should print out as 'x'.
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.
}
OpenPOWER on IntegriCloud