Hello,
It seems that gdb is still not ported to the Apple Silicon platform. Are there any other debuggers that can be used to debug Fortran codes? I am thinking about buying a Mac Mini M4, but the lack of debugger is a concern.
Hello,
It seems that gdb is still not ported to the Apple Silicon platform. Are there any other debuggers that can be used to debug Fortran codes? I am thinking about buying a Mac Mini M4, but the lack of debugger is a concern.
NAG Fortran supports Apple Silicon and includes a debugger (not gdb). It’s an excellent compiler, though performance is not its top goal. (It’s also not free.)
Sorry for the error.
According to the docs of the NAG Fortran compiler (version 7.2), the debugger (dbx90) is not available on macOS, only on Linux and Windows.
Well here is a dumb question that betrays how totally clueless I am about how debuggers work. Is there hardware specific information required by debuggers that is not being shared by Apple (I guess becauss it might betray something about Apple Silicon that Apple wants to keep secret)
I think it’s simply that Apple is only interested in LLDB (after all they use clang as the system compiler). Maybe there is a path forward here with flang?
On the other hand there aren’t any volunteers to extend GDB. At least that’s the reason quoted in the GDB mailing lists: Building gdb from source on MacOS - Stack Overflow
I don’t think so. @ivanpribec 's statement about a lack of volunteers to do the job is probably the right explanation. gdb is avalaible under macOS/x86, Linux/x86, and AFAIK under Linux/ARM. Just the macOS/ARM combination is missing
Thanks, the lack of support for gdb development does make sense. I was just assuming that Apple’s long standing “our way or the highway” approach to hardware and software was a factor. Some people like that, I don’t which is why I moved to Linux about 27 years ago and haven’t looked back.