lldb-instr not working

Hi, I’ve recently tried to use lldb-instr, as mentioned in https://lldb.llvm.org/resources/sbapi.html, but I’m having the following issue when running it on darwin.

./lldb-instr

LLVM ERROR: Unable to find target for this triple (no targets are registered)

Is this a known issue? Or should lldb-instr be built in a special way to make it aware of the local compilation target?

Does anyone know anything about this?

Thanks!

  • Walter

Hi Walter,

lldb-instr needs compile_commands.json file to figure out the exact compiler invocation for every file. Can you verify that the file exists in the directory you’re running lldb-instr from?

Cheers,
Jonas

Are there instructions for this somewhere? If not, can we get some on the site?