summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/default-constructor
Commit message (Collapse)AuthorAgeFilesLines
...
* Added the ability to get synthetic child values from SBValue objects thatGreg Clayton2011-07-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | represent pointers and arrays by adding an extra parameter to the SBValue SBValue::GetChildAtIndex (uint32_t idx, DynamicValueType use_dynamic, bool can_create_synthetic); The new "can_create_synthetic" will allow you to create child values that aren't actually a part of the original type. So if you code like: int *foo_ptr = ... And you have a SBValue that contains the value for "foo_ptr": SBValue foo_value = ... You can now get the "foo_ptr[12]" item by doing this: v = foo_value.GetChiltAtIndex (12, lldb.eNoDynamicValues, True); Normall the "foo_value" would only have one child value (an integer), but we can create "synthetic" child values by treating the pointer as an array. Likewise if you have code like: int array[2]; array_value = .... v = array_value.GetChiltAtIndex (0); // Success, v will be valid v = array_value.GetChiltAtIndex (1); // Success, v will be valid v = array_value.GetChiltAtIndex (2); // Fail, v won't be valid, "2" is not a valid zero based index in "array" But if you use the ability to create synthetic children: v = array_value.GetChiltAtIndex (0, lldb.eNoDynamicValues, True); // Success, v will be valid v = array_value.GetChiltAtIndex (1, lldb.eNoDynamicValues, True); // Success, v will be valid v = array_value.GetChiltAtIndex (2, lldb.eNoDynamicValues, True); // Success, v will be valid llvm-svn: 135292
* Add some comment.Johnny Chen2011-07-081-0/+1
| | | | llvm-svn: 134769
* o TestEvents.py:Johnny Chen2011-07-081-0/+1
| | | | | | | | | | | | | | | | Add a usage example of SBEvent APIs. o SBEvent.h and SBListener.h: Add method docstrings for SBEvent.h and SBListener.h, and example usage of SBEvent into the class docstring of SBEvent. o lldb.swig: Add typemap for SBEvent::SBEvent (uint32_t event, const char *cstr, uint32_t cstr_len) so that we can use, in Python, obj2 = lldb.SBEvent(0, "abc") to create an SBEvent. llvm-svn: 134766
* The Python API does not need SBEvent::BroadcasterMatchesPtr() when ↵Johnny Chen2011-07-071-1/+0
| | | | | | SBEvent::BroadcasterMatchesRef() suffices. llvm-svn: 134659
* Add fuzz calls for SBType::IsPointerType(void *opaque_type).Johnny Chen2011-07-061-0/+2
| | | | llvm-svn: 134551
* Add swig docstrings for SBModule.h, plus ifndef the SBModule::GetUUIDBytes() ↵Johnny Chen2011-07-051-1/+0
| | | | | | | | API out if swig. Fix typos in the comment for Module.h. llvm-svn: 134446
* Add fuzz calls for SBModule/SBTarget.FindGlobalVariables(...).Johnny Chen2011-06-292-0/+2
| | | | llvm-svn: 134107
* Add fuzz calls for SBTypeMember.Johnny Chen2011-06-292-0/+28
| | | | llvm-svn: 134098
* Add fuzz calls to SBType, SBValue, and SBValueList.Johnny Chen2011-06-294-0/+75
| | | | | | | | | Fixed crashes for SBValue fuzz calls. And change 'bool SBType::IsPointerType(void)' to 'bool SBType::IsAPointerType(void)' to avoid name collision with the static 'bool SBType::IsPointerType(void *)' function, which SWIG cannot handle. llvm-svn: 134096
* Add fuzz calls for SBTarget and SBThread.Johnny Chen2011-06-293-0/+83
| | | | llvm-svn: 134046
* Add fuzz calls for SBSymbol and SBSymbolContext.Johnny Chen2011-06-283-0/+37
| | | | llvm-svn: 134042
* Add fuzz calls for SBStringList and add obj.Clear() calls for some files.Johnny Chen2011-06-2810-0/+25
| | | | llvm-svn: 134040
* Add fuzz calls for SBModule and SBProcess.Johnny Chen2011-06-283-0/+67
| | | | llvm-svn: 134037
* Add fuzz calls for SBListener.Johnny Chen2011-06-282-0/+26
| | | | llvm-svn: 134029
* Add fuzz calls for SBLineEntry.Johnny Chen2011-06-283-1/+18
| | | | llvm-svn: 134028
* Add fuzz calls for SBInstruction and SBInstructionList.Johnny Chen2011-06-283-0/+36
| | | | llvm-svn: 134020
* Add fuzz calls for SBInputReader.Johnny Chen2011-06-282-0/+16
| | | | llvm-svn: 133972
* Add fuzz calls for SBFrame and SBFunction.Johnny Chen2011-06-273-0/+59
| | | | llvm-svn: 133965
* Add fuzz calls for SBFileSpec.Johnny Chen2011-06-272-0/+17
| | | | llvm-svn: 133956
* Add fuzz calls for SBEvent.Johnny Chen2011-06-272-0/+20
| | | | llvm-svn: 133954
* Add fuzz calls for SBError.Johnny Chen2011-06-252-0/+22
| | | | llvm-svn: 133850
* Add fuzz calls for SBDebugger.Johnny Chen2011-06-252-0/+54
| | | | llvm-svn: 133848
* Add fuzz calls for SBCompileUnit.Johnny Chen2011-06-242-0/+16
| | | | llvm-svn: 133843
* Add fuzz calls for SBCommunication.Johnny Chen2011-06-242-0/+30
| | | | llvm-svn: 133839
* Add fuzz calls for SBBroadcaster.Johnny Chen2011-06-242-0/+22
| | | | llvm-svn: 133837
* Add fuzz calls for SBBreakpointLocation.Johnny Chen2011-06-242-0/+30
| | | | llvm-svn: 133810
* Add fuzz calls for SBBreakpoint.Johnny Chen2011-06-242-2/+39
| | | | llvm-svn: 133809
* Add fuzz calls for SBBlock.Johnny Chen2011-06-242-0/+20
| | | | llvm-svn: 133780
* Start adding API calls to the invalid SB API object after default construction.Johnny Chen2011-06-242-0/+15
| | | | | | | | It should not crash lldb. This checkin adds calls for SBAddress. llvm-svn: 133778
* Add docstring to test_SBSymbolContextList(self) explaining that upon default ↵Johnny Chen2011-06-221-0/+1
| | | | | | construction, the API object is valid. llvm-svn: 133644
* Recent change to SBSymbolContextList (r133498) makes the default constructor ↵Johnny Chen2011-06-221-3/+3
| | | | | | | | return a valid SB API object. Modify the test case to accommodate. llvm-svn: 133602
* Minor module-level docstring change.Johnny Chen2011-06-201-1/+1
| | | | llvm-svn: 133476
* Test lldb Python API object's default constructor and make sure it is invalidJohnny Chen2011-06-201-0/+243
after initial construction. There are two exceptions to the above general rules, though; the API objects are SBCommadnReturnObject and SBStream. llvm-svn: 133475
OpenPOWER on IntegriCloud