gendwarfksyms: Expand array_type
authorSami Tolvanen <samitolvanen@google.com>
Fri, 3 Jan 2025 20:45:29 +0000 (20:45 +0000)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 10 Jan 2025 16:25:25 +0000 (01:25 +0900)
commitc772f1d1eaac608c083ee79fd5cfbe879958eb3e
treeceb8505238ed5dd40e6edb4e11cf1486980e9715
parent220a0857f3a89e0dce3fc7c38d981df41c4537a7
gendwarfksyms: Expand array_type

Add support for expanding DW_TAG_array_type, and the subrange type
indicating array size.

Example source code:

  const char *s[34];

Output with --dump-dies:

  variable array_type[34] {
    pointer_type {
      const_type {
        base_type char byte_size(1) encoding(6)
      }
    } byte_size(8)
  }

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/gendwarfksyms/dwarf.c