summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/value/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Move lldb/test to lldb/packages/Python/lldbsuite/test.Zachary Turner2015-10-281-52/+0
| | | | | | | | | | | This is the conclusion of an effort to get LLDB's Python code structured into a bona-fide Python package. This has a number of benefits, but most notably the ability to more easily share Python code between different but related pieces of LLDB's Python infrastructure (for example, `scripts` can now share code with `test`). llvm-svn: 251532
* Add a class ValueObjectConstResultCast.Siva Chandra2015-07-161-0/+10
| | | | | | | | | | | | | | | | | | | | | Summary: Other changes around the main change include: 1. Add a method Cast to ValueObjectConstResult, ValueObjectConstResultImpl and ValueObjectConstResultChild. 2. Add an argument |live_address| of type lldb::addr_t to the constructor of ValueObjectConstResultChild. This is passed on to the backing ValueObjectConstResultImpl object constructor so that the address of the child value can be calculated properly. Reviewers: granata.enrico, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11203 llvm-svn: 242374
* Add test scenario for value.GetChildAtIndex(0) where value is a pointer to a ↵Johnny Chen2011-11-151-0/+2
| | | | | | simple type. llvm-svn: 144697
* Add an additional formatter class RecursiveDecentFormatter which prints theJohnny Chen2011-07-221-0/+8
| | | | | | | | | | | | | | | | | 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/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 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 TestValueAPI.py to exercise the newly added/modified SBValue APIs:Johnny Chen2011-07-151-0/+30
o GetChildAtIndex, and o GetValueForExpressionPath llvm-svn: 135315
OpenPOWER on IntegriCloud