lldb没有启动应用程序 [英] lldb is not starting an application

查看:189
本文介绍了lldb没有启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我在lldb命令行模式下的第一次经验.不成功.

this is my first experience in commandline mode of lldb. unsuccessful.

  1. 已安装带有clang,lld,lldb v5(ubuntu 16.04)的极简工具包
  2. 使用clang构建的示例应用程序.
  3. 尝试开始:

lldb应用

lldb applcation

>运行

错误:进程启动失败:无法找到lldb-server-5.0.0

error: process launch failed: unable to locate lldb-server-5.0.0

现在是问题:

  1. 为什么lldb尝试运行服务器?这不是远程调试.
  2. 为什么lldb引用5.0.0(以及在何处更改此设置)?实际上,在所有llvm实用程序中都添加了带有xxx-5.0后缀的符号链接到所有llvm实用程序,但是没有带xxx-5.0.0的符号链接.如果这是指lldb-server本身(不带后缀),则将是合理的.
  3. 添加lldb-server-5.0.0 symlink不能解决问题.

任何想法这应该如何工作?

any idea how this should work?

顺便提一个问题-似乎向左/向右/向上/向下箭头键在lldb控制台中不起作用?而不是移动光标,而是添加了一个代码

by the way extra question - seems left/right/up/down arrows keys don't work in lldb console? instead of cursor moving it adds a codes

(lldb)^ [[D ^ [[A ^ [[C ^ [[B

(lldb) ^[[D^[[A^[[C^[[B

推荐答案

这是已知的LLDB 5.0的错误,显然与Debian打包有关.解决方法与注释中链接的问题相似,但不相同. (是的,有这个确切的问题,我已经确认了解决方案.)

This is a known bug with LLDB 5.0, apparently related to the Debian packaging. The workaround is similar to the question linked in the comments, but not the same. (And yes, having this exact problem, I've confirmed the solution.)

strace揭示了问题所在...

An strace reveals the problem...

1887 26838 access("/usr/lib/llvm-5.0/bin/lldb-server-5.0.0",F_OK)= -1 ENOENT(无此类文件或目录)

1887 26838 access("/usr/lib/llvm-5.0/bin/lldb-server-5.0.0", F_OK) = -1 ENOENT (No such file or directory)

确切指示该符号链接的需要位置.修复它就像单个终端命令一样简单...

That indicates exactly where that symlink is needed. Fixing it is as simple as a single terminal command...

$ sudo ln -s /usr/bin/lldb-server-5.0 /usr/lib/llvm-5.0/bin/lldb-server-5.0.0

这篇关于lldb没有启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆