[Lldb-commits] [PATCH] D79559: [lldb] Also recognize DWARF UTF base types using their size

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon May 11 07:29:19 PDT 2020

labath added a comment.

The running aspect is somewhat unfortunate, as it forces the input to be compatible with the host system. I wouldn't be surprised if the test broke somewhere (in fact, I would be surprised if it didn't), because ir already hardcodes a lot of assumptions about the host system.

Given that the fix really is about how types are parsed, it should be sufficient to run something like "type lookup" on these types and verifying that. Right now I get

  struct string {
      unsigned long length;
      void *ptr;

for `type lookup string`. I'm guessing that after your patch the `void *` will change into something else. Alternatively, you could just check for the existing formatting of "target variable utf8", but leave a note that this does not check the precise formatting of the variable, just its utf8-ness. Then we can just update the expectation when the pretty printer bug is fixed.

  rG LLVM Github Monorepo



More information about the lldb-commits mailing list