hanchenye-llvm-project/lldb/scripts/Python
Greg Clayton 1811b4faad <rdar://problem/11275622>
Added new API to lldb::SBTypeMember for bitfields:

    bool SBTypeMember::IsBitfield();
    uint32_t SBTypeMember::GetBitfieldSizeInBits();

Also added new properties for easy access. Now SBTypeMember objects in python have a "fields" property for all type fields, "bases" for all direct bases, "vbases" for all virtual base classes and "members" for a combo of all three organized by bit offset. They all return a python list() of SBTypeMember objects. Usage:
(lldb) script
>>> t = lldb.target.FindFirstType("my_type")
>>> for field in t.fields:
...     print field
>>> for vbase in t.vbases:
...     print vbase
>>> for base in t.bases:
...     print base
>>> for member in t.members:
...     print member

Also added new "is_bitfield" property to the SBTypeMember objects that will return the result of SBTypeMember::IsBitfield(), and "bitfield_bit_size" which will return the result of SBTypeMember::GetBitfieldSizeInBits();

I also fixed "SBTypeMember::GetOffsetInBytes()" to return the correct byte offset.

llvm-svn: 161091
2012-07-31 23:39:10 +00:00
..
interface <rdar://problem/11275622> 2012-07-31 23:39:10 +00:00
build-swig-Python.sh Fix the comments about LLDB_DISABLE_PYTHON in the python swig shell scripts to be more clear. 2012-05-26 00:23:52 +00:00
edit-swig-python-wrapper-file.py Fix remaining Python issues leftover from my previous patch. 2011-06-01 02:33:12 +00:00
finish-swig-Python-LLDB.sh Fix the comments about LLDB_DISABLE_PYTHON in the python swig shell scripts to be more clear. 2012-05-26 00:23:52 +00:00
modify-python-lldb.py Export the APIs submitted by Dawn to the Python bindings. Add a simple test case for the SBModule.compile_unit_iter() API. 2012-03-16 21:55:42 +00:00
python-extensions.swig <rdar://problem/10062621> 2012-02-15 02:34:21 +00:00
python-typemaps.swig Fix SBProcess::ReadMemory's typemap to handle PyLongObjects. 2012-05-11 20:38:28 +00:00
python-wrapper.swig Massive enumeration name changes: a number of enums in ValueObject were not following the naming pattern 2012-03-19 22:58:49 +00:00