History log of /external/lldb/test/python_api/process/TestProcessAPI.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
166b89f089d6bec5bb9dd40470a4dc951ffc9daa 19-Mar-2013 Greg Clayton <gclayton@apple.com> Fixed incorrect python that was trying to validate that we got a valid lldb.SBThread object by checking to see if it is equal to "None".

This test is incorrect as functions that return lldb.SBThread objects never return None, they just return lldb.SBThread objects that contain invalid opaque classes.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@177416 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
191343e7213d3d717327319352d086f981fa8e58 24-May-2012 Johnny Chen <johnny.chen@apple.com> Add SBProcess::GetNumSupportedHardwareWatchpoints() API and export it through the Python scripting bridge.
Add/modify some test cases.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@157353 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
21b1984e161b0cadee331d32bfd721eccfdf4b1f 06-Apr-2012 Johnny Chen <johnny.chen@apple.com> Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases.
Plus some minor cleanup of test method names.
Third and final batch is coming.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@154197 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
9633cc63723f92fe2caa6ba74eb4131c2387a966 16-Dec-2011 Johnny Chen <johnny.chen@apple.com> Simplify the setup leading to the testing of ReadMemory(), ReadCStringFromMemory(), and ReadUnsignedFromMemory().
Instead of getting the location of the variable and converting the hex string to an int, just use
val.AddressOf().GetValueAsUnsigned() to compute the address of the memory region to read from.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@146719 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
126fcc31c792c186f617c38b15219b1d181a640a 16-Dec-2011 Johnny Chen <johnny.chen@apple.com> Add a test sequence of SBProcess.ReadCStringFromMemory() with (char *)my_char_ptr as the address to read from.

char *my_char_ptr = (char *)"Does it work?";


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@146716 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
6f6dd0acd6199dcb27855572ac1bfd739f862b90 16-Dec-2011 Johnny Chen <johnny.chen@apple.com> Add test scenario for newly added SBProcess APIs: ReadCStringFromMemory() and ReadUnsignedFromMemory().


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@146704 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
0fb0bcc9d4e951145e1b8c783652224c09b23af4 04-Aug-2011 Greg Clayton <gclayton@apple.com> Cleaned up the SBType.h file to not include internal headers and reorganized
the SBType implementation classes.

Fixed LLDB core and the test suite to not use deprecated SBValue APIs.

Added a few new APIs to SBValue:

int64_t
SBValue::GetValueAsSigned(int64_t fail_value=0);

uint64_t
SBValue::GetValueAsUnsigned(uint64_t fail_value=0)




git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@136829 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
425b0cf93f509ba63346e56654322b9d9bc91d60 12-Jul-2011 Johnny Chen <johnny.chen@apple.com> Passing in os.ctermid() as the arg for SBTarget.Launch(...) for stdin_path, stdout_path, and stderr_path
is just wrong and resulted in the inferior's output getting mixed into the GDB remote communication's
log file. Change all test cases to not pass os.ctermid() and either use SBTarget.LaunchSimple() or
SBTarget.Launch() and pass None as stdin_path/stdout_path/srderr_path to use a pseudo terminal.

rdar://problem/9716499 program output is getting mixed into the GDB remote communications


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@134940 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
0a18748c2ac2727dbff814eabb8360754a783a3c 11-Jul-2011 Johnny Chen <johnny.chen@apple.com> The lldbtest.TestBase.DebugSBValue(self, val) method call now does not need the frame argument.
Only the val (of SBValue type) argument is needed.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@134915 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
3d8ae4681b81b42a404ad77a231c6f743040e644 16-Jun-2011 Johnny Chen <johnny.chen@apple.com> The extra burden for the Python API test case to assign its process object to self.process
in order to have its process cleaned up (terminated) upon tearDown is gone for good.
Let's simplify a bunch of Python API test cases.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@133097 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
805fec7ec90a09b94bc4515fcac9b2b03bae153b 24-May-2011 Johnny Chen <johnny.chen@apple.com> Now that we have added a post-processing step for adding truth value testing to
those lldb objects which implement the IsValid() method, let's change the rest of
the test suite to use the more compact truth value testing pattern (the Python way).


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@131970 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
47342d57ac5ac0bb2da765374229f94d98cb600a 27-Apr-2011 Johnny Chen <johnny.chen@apple.com> Change the rest of lldbutil.py's function names to all lower case formats to be consistent.
And modify the test cases accordingly.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@130314 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
ed97643042ca69330c73f8a7d64b8096e3fdc880 19-Apr-2011 Johnny Chen <johnny.chen@apple.com> Use self.TraceOn() API.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@129792 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
e41494a9092e15192012a5e0a8a1ffd66c70b8bb 16-Apr-2011 Jim Ingham <jingham@apple.com> Add support for "dynamic values" for C++ classes. This currently only works for "frame var" and for the
expressions that are simple enough to get passed to the "frame var" underpinnings. The parser code will
have to be changed to also query for the dynamic types & offsets as it is looking up variables.

The behavior of "frame var" is controlled in two ways. You can pass "-d {true/false} to the frame var
command to get the dynamic or static value of the variables you are printing.

There's also a general setting:

target.prefer-dynamic-value (boolean) = 'true'

which is consulted if you call "frame var" without supplying a value for the -d option.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@129623 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
42da4dae5d7dccf98a57399d4689150b928ab545 05-Mar-2011 Johnny Chen <johnny.chen@apple.com> Add a test case ProcessAPITestCase.test_remote_launch() which tests SBProcess.RemoteLaunch()
API with a process not in eStateConnected, and checks that the remote launch failed.

Modify SBProcess::RemoteLaunch()/RemoteAttachToProcessWithID()'s log statements to fix a
crasher when logging is turned on.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@127055 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
77356a0e9bec77c6ed7eb23151bcd8de27fef902 03-Mar-2011 Johnny Chen <johnny.chen@apple.com> Add TestTargetAPI.py:

// When stopped on breakppint 1, and then 2, we can get the line entries using
// SBFrame API SBFrame.GetLineEntry(). We'll get the start addresses for the
// two line entries; with the start address (of SBAddress type), we can then
// resolve the symbol context using the SBTarget API
// SBTarget.ResolveSymbolContextForAddress().
//
// The two symbol context should point to the same symbol, i.e., 'a' function.


Add two utility functions to lldbutil.py:

o get_stopped_threads(process, reason):

return the list of threads with the specified stop reason or an empty list if not found

o get_stopped_thread(process, reason):

return the first thread with the given stop reason or None if not found


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@126916 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
a6e29c25833b8b4876119604b7776aac1386e58e 02-Mar-2011 Johnny Chen <johnny.chen@apple.com> Add some comments.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@126867 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
4c70f287ea336c4a0c599431bfc2b5a9a618ab5e 02-Mar-2011 Johnny Chen <johnny.chen@apple.com> Add two utility functions to lldbutil.py:

o int_to_bytearray()
o bytearray_to_int()

They return/interpret the bytearray in the little endian format.
For big endian, simply perform ba.reverse() on the bytearray object.

And modify TestProcessAPI.py to take advantage of the functions.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@126813 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
60a544f23362d4f2fbe1e68b9c5340aa5e11302c 01-Mar-2011 Johnny Chen <johnny.chen@apple.com> 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@126792 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
27f0f402fe342f4ed40968611f9f04484a7b122b 01-Mar-2011 Johnny Chen <johnny.chen@apple.com> Fix wrong placement of skipUnless() decorator.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@126774 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
aaea42e0a33c37c622e707c4e458639f9017b320 01-Mar-2011 Johnny Chen <johnny.chen@apple.com> Add test methods for SBProcess.WriteMemory() API to the TestProcessAPI.py file.
This makes the number of total tests equal to 201.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@126769 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py
36a0f749d744c7922d95e24393822afa1a8d49d7 01-Mar-2011 Johnny Chen <johnny.chen@apple.com> Add TestProcessAPI.py which exercises some Python SBProcess API. In particular, this tests
the SBProcess.ReadMemory() API, which, due to SWIG typemap'ing, expects 3 arguments (the location
to read from, the size in bytes to read, and an SBError object), and returns the result as a
Python string object.

On SnowLeopard where this has been tested, the SWIG script needs to be pampered (use the exact
same parameter names as in SBProcess.h) in order for this to work.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@126736 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/process/TestProcessAPI.py