[Lldb-commits] [PATCH] D59101: [SBAPI] Log from record macro

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun Mar 10 15:25:25 PDT 2019


kastiglione added a comment.

I'm getting build failures that appear to be caused by this patch. I'm compiling on macOS with Xcode 10.1. The failures are uses of `LLDB_RECORD_DUMMY()`, passing a callback function pointer as one of the args. This results in errors like:

  ../../tools/lldb/include/lldb/Utility/ReproducerInstrumentation.h:37:6: error: invalid operands to binary expression ('llvm::raw_string_ostream' and 'bool (*)(void *, lldb::SBProcess &, lldb::SBThread &, lldb::SBBreakpointLocation &)')
    ss << t;
    ~~ ^  ~

and

  ../../include/llvm/Support/raw_ostream.h:202:16: note: candidate function not viable: no known conversion from 'bool (*)(void *, lldb::SBProcess &, lldb::SBThread &, lldb::SBBreakpointLocation &)' to 'const void *' for 1st argument; take the address of the argument with &
    raw_ostream &operator<<(const void *P);


Repository:
  rLLDB LLDB

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

https://reviews.llvm.org/D59101





More information about the lldb-commits mailing list