GDB冻结在macOS Catalina上 [英] GDB frozen on macOS Catalina
问题描述
我运行了一个'helloworld'来在Mac上尝试GDB,但在键入后运行了它的输出
I ran a 'helloworld' to try GDB on mac but after typing run it output
[New Thread 0x1903 of process 69034]
然后什么都没有.
我已经等了一个小时,还是一无所获.完成认证并禁用Shell-with-shell.
I've waited an hour and still nothing. Having done certification and disable startup-with-shell.
系统:MacOS Catalina 10.15.4 GNU gdb(GDB)9.1
system: MacOS Catalina 10.15.4 GNU gdb (GDB) 9.1
推荐答案
"问题是由Apple在其Xcode工具链中从GNU调试器GDB切换到LLVM调试器LLDB(以及过渡)引起的.从GCC到Clang)."来自 https://www. ics.uci.edu/~pattis/common/handouts/macmingweclipse/allexperimental/mac-gdb-install.html
"The problem is caused by Apple switching away from GDB, the GNU debugger, to LLDB, the LLVM debugger, in their Xcode toolchain (along with the transition from GCC to Clang)." from https://www.ics.uci.edu/~pattis/common/handouts/macmingweclipse/allexperimental/mac-gdb-install.html
在OS X中使用lldb代替gdb.
use lldb instead of gdb in OS X.
这不能解决gdb的问题,但至少为您提供了解决它的方法!
this doesn't solve the problem with gdb, but at least gives you a way to get around it!
lldb和gdb是非常相似的调试器.这是从gdb命令到其lldb等效项的映射: https://lldb.llvm.org/use /map.html
lldb and gdb are very similar debuggers. here's a mapping from gdb commands to their lldb equivalents: https://lldb.llvm.org/use/map.html
这篇关于GDB冻结在macOS Catalina上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!