[PATCH] D82881: [DEBUGINFO]Fix debug info for packed bitfields.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 10:50:05 PDT 2020


ABataev added a comment.

In D82881#2133511 <https://reviews.llvm.org/D82881#2133511>, @aprantl wrote:

> And conversely, with this patch applied, do GDB and LLDB still produce the expected result?


GDB works correctly. Did not check with lldb, but it also should work. The result is similar to the debug info, produced for the next code:

  struct {
  short : 3;
  short : 6;
  } a;

But the code, produced by the compiler, is also the same. So, I think, the debug info also should be the same.

> Also, what happens to the next bit field or variable right after the bit-filed with the now larger container? Is that affected by the patch?

It does not affect the next fields. We point exactly to the bytes, allocated for this particular bitfield only.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82881





More information about the llvm-commits mailing list