[PATCH] D36480: [LLVM] Change to Verifier to allow Fortran CHARACTER types in debug information

Eric Schweitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 9 10:05:36 PDT 2017


schweitz added a comment.

CHARACTER(3) foo = 'abc'

____________________________

DW_TAG_string_type:

  DW_AT_name = "character(3)"
  DW_AT_byte_size = 3

It is understood that LLVM will add a superfluous DW_AT_encoding attribute as well. This has not been a real issue when testing existing debuggers with our Fortran compilers. It is generally expected that debuggers will ignore attributes that they don't understand in context. This patch enables the display of CHARACTER type variables under gdb when using flang, for example.

(gdb) p foo
$1 = 'abc'
(gdb)


https://reviews.llvm.org/D36480





More information about the llvm-commits mailing list