hanchenye-llvm-project/lldb/scripts
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
..
Python <rdar://problem/11275622> 2012-07-31 23:39:10 +00:00
build-lldb-llvm-clang <rdar://problem/10507811> 2012-01-04 22:56:43 +00:00
build-llvm.pl Building llvm for multiple arches could cause problems 2012-04-02 08:56:42 +00:00
build-swig-wrapper-classes.sh Look for swig in /usr/bin and /usr/local/bin. 2011-03-01 01:39:04 +00:00
buildbot.py Added a buildbot script that automatically checks 2011-10-14 21:43:51 +00:00
checkpoint-llvm.pl Updated LLVM/Clang to pick up a fix for imports of 2011-11-04 22:46:46 +00:00
clang.amalgamated.diff Updated LLVM and added a fix to LLDB which allows 2012-07-13 20:01:02 +00:00
disasm-gdb-remote.pl For dump_register_value() sub-routine, issue a return after an error condition occurs. 2012-05-30 00:29:12 +00:00
finish-swig-wrapper-classes.sh
generate-vers.pl Update autogen'd LLDB_vers.c. 2011-03-23 02:07:56 +00:00
install-lldb.sh
lldb.swig <rdar://problem/10062621> 2012-02-15 02:34:21 +00:00
llvm.amalgamated.diff Integrated a fix to LLVM's disassembler that 2012-07-26 01:15:27 +00:00
sed-sources