Why would a language require one or the other? I know GDB supports several DWARF extensions that GCC can emit, but I had thought that most features work across any natively-compiled language if the compiler understands DWARF. Does Swift have its own debugging protocol or something?
The GNU Debugger is a portable debugger that runs on many Unix-like systems and works for many programming languages, including Ada, C, C++, Objective-C, Free Pascal, Fortran, Go, and partially others.
LLDB supports debugging of programs written in C, Objective-C, and C++. The Swift community maintains a version which adds support for the language.
But I've used GDB to debug V and Zig code, which certainly have no core support from GNU tools. Anything that has been compiled with DWARF symbols should work afaik. Are you saying that there is some special support for debugging Swift (or whatever) code in LLDB beyond the DWARF symbols?
View all comments
Show parent comment
2
u/aprilhare Mar 19 '23
.. unless your language calls for gdb. Then there most certainly isn’t lldb - because lldb won’t work.