pub const RegisterRule = union(enum) default: defaultThe spec says that the default rule for each column is the undefined rule. However, it also allows ABI / compiler authors to specify alternate defaults, so there is a distinction made here.
undefined: undefinedsame_value: same_valueoffset: i64offset(N)
val_offset: i64val_offset(N)
register: u8register(R)
expression: []const u8expression(E)
val_expression: []const u8val_expression(E)
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21pub const RegisterRule = union(enum) {
/// The spec says that the default rule for each column is the undefined rule.
/// However, it also allows ABI / compiler authors to specify alternate defaults, so
/// there is a distinction made here.
default,
undefined,
same_value,
/// offset(N)
offset: i64,
/// val_offset(N)
val_offset: i64,
/// register(R)
register: u8,
/// expression(E)
expression: []const u8,
/// val_expression(E)
val_expression: []const u8,
}
See section 6.4.1 of the DWARF5 specification for details on each