]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gendwarfksyms: Expand structure types
authorSami Tolvanen <samitolvanen@google.com>
Fri, 3 Jan 2025 20:45:30 +0000 (20:45 +0000)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 10 Jan 2025 16:25:25 +0000 (01:25 +0900)
commitf6bb92455a5e5b2241d2e1f3e240c5fc036c55cb
tree045e4410ec0a601c9399abb35bd3357dbf4fec7c
parentc772f1d1eaac608c083ee79fd5cfbe879958eb3e
gendwarfksyms: Expand structure types

Recursively expand DWARF structure types, i.e. structs, unions, and
enums. Also include relevant DWARF attributes in type strings to
encode structure layout, for example.

Example output with --dump-dies:

  subprogram (
    formal_parameter structure_type &str {
      member pointer_type {
        base_type u8 byte_size(1) encoding(7)
      } data_ptr data_member_location(0) ,
      member base_type usize byte_size(8) encoding(7) length data_member_location(8)
    } byte_size(16) alignment(8) msg
  )
  -> base_type void

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
scripts/gendwarfksyms/gendwarfksyms.h