implement debug info for global variables in the llvm backend #11097
Labels
backend-llvm
The LLVM backend outputs an LLVM IR Module.
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone
hello.zig
It looks like gdb is cleverly noticing symbols and treating them like typeless global variables. But to solve this issue we would expect to see the global variable in the "All defined variables" list, and it should have a type associated with it so that we do not have to manually cast it.
We would also expect to see some output from:
The text was updated successfully, but these errors were encountered: