[lldb-dev] lldb-instr not working

Greg Clayton via lldb-dev lldb-dev at lists.llvm.org
Tue Mar 24 15:11:24 PDT 2020


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

> On Mar 23, 2020, at 1:31 PM, Jonas Devlieghere via lldb-dev <lldb-dev at lists.llvm.org> wrote:
> 
> 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
> 
> On Mon, Mar 23, 2020 at 1:29 PM Walter via lldb-dev <lldb-dev at lists.llvm.org <mailto:lldb-dev at lists.llvm.org>> wrote:
> Hi, I've recently tried to use lldb-instr, as mentioned in https://lldb.llvm.org/resources/sbapi.html <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
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org <mailto:lldb-dev at lists.llvm.org>
> https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev <https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20200324/2ed0f5ec/attachment.html>


More information about the lldb-dev mailing list