| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 134769
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
SBEvent::BroadcasterMatchesRef() suffices.
llvm-svn: 134659
|
|
|
|
| |
llvm-svn: 134551
|
|
|
|
|
|
|
|
| |
API out if swig.
Fix typos in the comment for Module.h.
llvm-svn: 134446
|
|
|
|
| |
llvm-svn: 134107
|
|
|
|
| |
llvm-svn: 134098
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 134046
|
|
|
|
| |
llvm-svn: 134042
|
|
|
|
| |
llvm-svn: 134040
|
|
|
|
| |
llvm-svn: 134037
|
|
|
|
| |
llvm-svn: 134029
|
|
|
|
| |
llvm-svn: 134028
|
|
|
|
| |
llvm-svn: 134020
|
|
|
|
| |
llvm-svn: 133972
|
|
|
|
| |
llvm-svn: 133965
|
|
|
|
| |
llvm-svn: 133956
|
|
|
|
| |
llvm-svn: 133954
|
|
|
|
| |
llvm-svn: 133850
|
|
|
|
| |
llvm-svn: 133848
|
|
|
|
| |
llvm-svn: 133843
|
|
|
|
| |
llvm-svn: 133839
|
|
|
|
| |
llvm-svn: 133837
|
|
|
|
| |
llvm-svn: 133810
|
|
|
|
| |
llvm-svn: 133809
|
|
|
|
| |
llvm-svn: 133780
|
|
|
|
|
|
|
|
| |
It should not crash lldb.
This checkin adds calls for SBAddress.
llvm-svn: 133778
|
|
|
|
|
|
| |
construction, the API object is valid.
llvm-svn: 133644
|
|
|
|
|
|
|
|
| |
return
a valid SB API object. Modify the test case to accommodate.
llvm-svn: 133602
|
|
|
|
| |
llvm-svn: 133476
|
|
after initial construction.
There are two exceptions to the above general rules, though; the API objects are
SBCommadnReturnObject and SBStream.
llvm-svn: 133475
|