diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-03-01 22:56:31 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-03-01 22:56:31 +0000 |
commit | cf386e24ab4ea80411515e62904002a66f1ff576 (patch) | |
tree | 69123dbb4bb851d8f3f88d9913aeccda466e77bf /lldb/test/python_api/process/main.cpp | |
parent | 51477bd0d0ede9879a25138d79481e9c53f9836c (diff) | |
download | bcm5719-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.cpp | 2 |
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. } |