Issue 210219.2: Differentiate between tuple and struct types for Rust

Author: Tom Tromey
Champion: Fāng-ruì Sòng
Date submitted: 2021-02-19
Date revised:
Date closed:
Type: Improvement
Status: Incomplete
DWARF Version: 6

Section 5.7, pg 113

Rust has two different structure types -- tuples and structs. (Actually it also has tuple structs, but those can be handled like tuples.) Structs have field names, while tuples use numbers. Currently, DWARF readers use the member names to differentiate between the two. However, there are empty variants of both tuples and structs, and these can't be distinguished without some additional help. Perhaps adding DW_TAG_tuple_type would be worthwhile here.