mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-10-28 10:45:48 +08:00
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
#exe {
|
|
--name identifiers
|
|
-Mroot=identifiers.zig
|
|
#}
|
|
|
|
#write identifiers.zig {
|
|
const Struct = struct { @"zwölf": u32 };
|
|
fn testIdentifiers(@"fünf": u32, @"struct": Struct) void {
|
|
_ = @"fünf";
|
|
_ = @"struct";
|
|
}
|
|
pub fn main() void {
|
|
testIdentifiers(5, .{ .@"zwölf" = 12 });
|
|
}
|
|
#}
|
|
#update
|
|
#check lldb {
|
|
(lldb) breakpoint set --file identifiers.zig --source-pattern-regexp '_ = @"struct";'
|
|
Breakpoint 1: where = identifiers`identifiers.testIdentifiers + #... at identifiers.zig:5:1, address = 0x#...
|
|
(lldb) process launch
|
|
Process #... launched: '#.../identifiers' (#...)
|
|
Process #... stopped
|
|
* thread #1, name = 'identifiers', stop reason = breakpoint 1.1
|
|
frame #0: identifiers`identifiers.testIdentifiers(fünf=5, struct=(.@"zw\xc3\xb6lf" = 12)) at identifiers.zig:5:1
|
|
(lldb) frame variable --show-all-children --show-types -- @\"fünf'"' '@"f\xC3\xBCnf"' '@"f\u{FC}nf"' '@"struct".@"zwölf"' '@"struct".@"zw\xC3\xB6lf"' '@"struct".@"zw\u{F6}lf"'
|
|
(u32) @"fünf" = 5
|
|
(u32) @"f\xC3\xBCnf" = 5
|
|
(u32) @"f\u{FC}nf" = 5
|
|
(u32) @"struct".@"zwölf" = 12
|
|
(u32) @"struct".@"zw\xC3\xB6lf" = 12
|
|
(u32) @"struct".@"zw\u{F6}lf" = 12
|
|
(lldb) breakpoint delete --force 1
|
|
1 breakpoints deleted; 0 breakpoint locations disabled.
|
|
#}
|