Displaying 2 results from an estimated 2 matches for "_anon".
Did you mean:
anon
2018 Jun 27
2
can debug info for coroutines be improved?
...` variable is not visible:
Breakpoint 1, testAsyncSeq () at /home/andy/downloads/zig/build/test.zig:14
14 async fn testAsyncSeq() void {
(gdb) next
15 var blah = Point{ .x = 12, .y = 34 };
(gdb)
16 suspend;
(gdb) info locals
bar = <optimized out>
blah = <optimized out>
_anon = 0x0
_anon = 368
_anon = 0x23a028 <global_fixed_allocator>
_anon = <optimized out>
(gdb) quit
Here is the LLVM IR generated for the function in the coroutines case. You
can see that it has full debug info and @llvm.dbg.declare just like in the
"normal function" case.
; Func...
2018 Feb 26
0
problem with moveSpillUsesAfterCoroBegin
...roy(i8* %10), !dbg !231
ret void, !dbg !232
}
; Function Attrs: nobuiltin nounwind
define internal fastcc i8* @amain(%StackTrace* nonnull, %Allocator*, i16*)
unnamed_addr #0 !dbg !234 {
Entry:
%3 = alloca { i16, %"[]u8" }, align 8
%4 = alloca { i16, %"[]u8" }, align 8
%_anon = alloca %AsyncFramePromise, align 8
%5 = bitcast %AsyncFramePromise* %_anon to i8*, !dbg !245
call void @llvm.memcpy.p0i8.p0i8.i64(i8* %5, i8* bitcast
(%AsyncFramePromise* @16 to i8*), i64 24, i32 8, i1 false), !dbg !245
call void @llvm.dbg.declare(metadata %AsyncFramePromise* %_anon, metada...