[Lldb-commits] [PATCH] D83433: Fix how we handle bit-fields for Objective-C when creating an AST

Jim Ingham via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 9 14:25:10 PDT 2020


jingham added a comment.

IIRC from when Shafik and I were looking at this the ObjC runtime data lists the same offset for all the members of the bitfield: the offset of the first member of the bitfield.  Apparently the ObjC runtime doesn't need to know where the individual members are dynamically - the offsets are baked into the code or something?  So to find where the member actually is you have to take the offset into the field - which is given in the DWARF, and add it to the dynamic offset you get from the runtime for the first member.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83433/new/

https://reviews.llvm.org/D83433





More information about the lldb-commits mailing list