本文介绍了使用CLANG进行编译时,是否有等效的GDB for GCC进行调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现您可以在使用GCC进行编译时使用GDB进行调试,但是在我们的大学中,我们需要使用CLANG进行编译,而我找不到与CLCC的GCC等效的GDB,有吗?

I have found that you can debug with GDB when compiling with GCC however at our university we are required to use CLANG for compiling and I can't find an equivalent of GDB for GCC for CLANG, is there one?

推荐答案

LLDB似乎是CLANG的等效调试器。这是我在学习LLDB以及从GDB学习LLDB的等效命令时发现的一些链接。

LLDB appears to be the equivalent debugger for CLANG. Here are some links I found on learning LLDB and the equivalent commands for LLDB from GDB.

这篇关于使用CLANG进行编译时,是否有等效的GDB for GCC进行调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 06:16