Currently Clang is generating subprograms without DW_AT_name. which is fine for LLDB but other debuggers (GNU gdb) can not be forced to accept such DWARF due to DWARF standard mandating DW_AT_name attribute for subprograms.
As per DWARF standard Subroutine must have DW_AT_name attribute.
Please consider below lines from DWARF(5) document
3.3.1 General Subroutine and Entry Point Information The subroutine or entry point entry has a DW_AT_name attribute whose value is a null-terminated string containing the subroutine or entry point name. It may also have a DW_AT_linkage_name attribute as described in Section 2.22 on page 56.
Current behavior of Clang prevents gdb to show variables in shared/private clause of Openmp task construct.