[flang-commits] [flang] [llvm] [mlir] Add DW_AT_type attribute to DW_TAG_string_type DWARF DIEs (PR #215365)

via flang-commits flang-commits at lists.llvm.org
Wed Aug 12 08:21:16 PDT 2026


timsmith78 wrote:

@abidh, I've made an attempt to implement the DW_AT_type attribute within DW_TAG_string_type DIEs per issue 95440 which you filed a while back.  It ended up touching many more files than I originally thought, and it does not seem to offer better end-user functionality than the existing implementation.  In particular, strings based on multi-byte character implementations still do not display correctly in GDB -- the user just sees a long string of bytes.  Is this implementation along the lines of what you were proposing, and does it open the door for better future support for multi-byte character string implementations (such as unicode)?  I think this is basically functional, and I'm happy to have it merged if you think it is helpful, but I guess I'm not sure what it buys us at present.  Gfortran's implementation using arrays currently offers a better user experience from what I can tell.

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


More information about the flang-commits mailing list