[Lldb-commits] [PATCH] D88483: Add possibility to get module from SBType

Jim Ingham via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 29 16:52:35 PDT 2020


jingham added a comment.

The test failed in the new form at line 77.  So we got the CU for compile_unit1.c and it was valid.  But it didn't contain an SBType for compile_unit1_type.  Probably the same thing is true in compile_unit2.c you just didn't get there.

Maybe your executable is too artificial?  You define a type in easy .c file, and you make a CU level variable with that type.  But neither of those variables are used by anything.  So some compiler that's being a little bit too smart for our good could discern that it can elide all those types.  Maybe make those struct elements extern and refer to them in main.c so that the compiler will have to keep them around?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88483



More information about the lldb-commits mailing list