[flang-commits] [flang] [flang][debug] set DW_AT_main_subprogram for fortran main function (PR #111350)

David Spickett via flang-commits flang-commits at lists.llvm.org
Mon Oct 7 02:50:20 PDT 2024


DavidSpickett wrote:

Well I didn't look into GDB's code I'm just going on what experts told me. So there could be a heuristic in there too.

Either way according to https://dwarfstd.org/doc/DWARF4.pdf this is a legitimate use of `DW_AT_main_subprogram` and it's what LLDB will end up looking for in the future.

https://github.com/llvm/llvm-project/pull/111350


More information about the flang-commits mailing list