make function calls contain debug stmt line/column info #11158
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone
Zig version:
0.10.0-dev.1311+5ea94e771
Here you can see in a debugging session, the traceback points back to the wrong function call:
This is because in the ZIR we only emit
dbg_stmt
for the var decl, not each function call:The two
call
instructions do have a source node, but only the index is communicated; not line/column info for use by debug info.We need to augment the call ZIR instruction with the same information as provided by
dbg_stmt
and then treat each function call as an implicit dbg_stmt instruction.The text was updated successfully, but these errors were encountered: