lldb 立即退出,状态 = -1 丢失连接

问题描述 投票:0回答:1

我无法让 llbm 在我的(2020 Intel)Macbook(使用更新的命令行工具)上运行。

我创建一个文件

test.c
,其中包含:

#include <stdio.h>

int main(){
    printf("hello world\n");
}

然后运行

clang -g test.c -o prog
。 现在我运行
lldb prog
并得到以下输出:

lldb prog
(lldb) target create "prog"
Current executable set to '/whatever/prog' (x86_64).
(lldb) run
Process 3934 launched: '/whatever/prog' (x86_64)
Process 3934 exited with status = -1 (0xffffffff) lost connection

有人知道这是怎么回事吗?

debugging lldb
1个回答
0
投票

事实证明,重新安装 Xcode(而不仅仅是更新命令行工具)可以解决该问题。

© www.soinside.com 2019 - 2024. All rights reserved.