forked from OSchip/llvm-project
1811b4faad
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 |
||
---|---|---|
.. | ||
Python | ||
build-lldb-llvm-clang | ||
build-llvm.pl | ||
build-swig-wrapper-classes.sh | ||
buildbot.py | ||
checkpoint-llvm.pl | ||
clang.amalgamated.diff | ||
disasm-gdb-remote.pl | ||
finish-swig-wrapper-classes.sh | ||
generate-vers.pl | ||
install-lldb.sh | ||
lldb.swig | ||
llvm.amalgamated.diff | ||
sed-sources |