Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Union

RegisterRule

Public Union
std.debug.Dwarf.Unwind.VirtualMachine.RegisterRule
pub const RegisterRule = union(enum)

See section 6.4.1 of the DWARF5 specification for details on each

Fields

default: default

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.

undefined: undefined
same_value: same_value
offset: i64

offset(N)

val_offset: i64

val_offset(N)

register: u8

register(R)

expression: []const u8

expression(E)

val_expression: []const u8

val_expression(E)

File

debug/Dwarf/Unwind/VirtualMachine.zig:4
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pub 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,
}