Is there an equivalent of GDB for GCC for debugging when compiling with CLANG?

こ雲淡風輕ζ 提交于 2019-12-21 18:29:35

问题


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?


回答1:


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.

http://lldb.llvm.org/lldb-gdb.html

http://meowni.ca/posts/unscary-lldb/

How to debug Clang plugin using lldb (or gdb)




回答2:


You can use GDB or lldb with clang.



来源:https://stackoverflow.com/questions/36659912/is-there-an-equivalent-of-gdb-for-gcc-for-debugging-when-compiling-with-clang

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!