summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/value/TestValueAPI.py
Commit message (Collapse)AuthorAgeFilesLines
* While we are at it, verify that 'my_int_ptr' points to 'g_my_int', using the ↵Johnny Chen2011-11-151-0/+6
| | | | | | | | SBTarget.ResolveLoadAddress() to get its SBAddress, and SBAddress.GetSymbol() to get the corresponding symbol. llvm-svn: 144728
* Add test scenario for value.GetChildAtIndex(0) where value is a pointer to a ↵Johnny Chen2011-11-151-0/+10
| | | | | | simple type. llvm-svn: 144697
* Add an additional formatter class RecursiveDecentFormatter which prints theJohnny Chen2011-07-221-1/+18
| | | | | | | | | | | | | | | | | value and the decendents. For an example, rdf = lldbutil.RecursiveDecentFormatter(indent_child=2) print rdf.format(g_table) produces: (const char **[2]) g_table = 0x00000001055a80f0 (location) (const char **) [0] = 0x00000001055a8080 (const char *) *[0] = "Sunday" (const char **) [1] = 0x00000001055a80c0 (const char *) *[1] = "Monday" llvm-svn: 135815
* Add BasicFormatter and ChildVisitingFormatter utility classes to the ↵Johnny Chen2011-07-221-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | lldbutil.py module which provide some convenient ways to print an SBValue object. Use that in TestValueAPI.py to print the 'days_of_week' char* array variable. For an example: cvf = lldbutil.ChildVisitingFormatter(indent=2) print cvf.format(days_of_week) produces: (const char *[7]) days_of_week = 0x00000001026a5060 (location) (const char *) [0] = "Sunday" (const char *) [1] = "Monday" (const char *) [2] = "Tuesday" (const char *) [3] = "Wednesday" (const char *) [4] = "Thursday" (const char *) [5] = "Friday" (const char *) [6] = "Saturday" llvm-svn: 135736
* Add test scenario of SBValue APIs for the 'days_of_week' global variable.Johnny Chen2011-07-211-0/+7
| | | | llvm-svn: 135716
* Add test scenario for exercising SBValue API: TypeIsPointerType() and ↵Johnny Chen2011-07-211-0/+10
| | | | | | GetByteSize(). llvm-svn: 135699
* Add TestValueAPI.py to exercise the newly added/modified SBValue APIs:Johnny Chen2011-07-151-0/+87
o GetChildAtIndex, and o GetValueForExpressionPath llvm-svn: 135315
OpenPOWER on IntegriCloud