diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-07-31 23:22:35 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-08-02 12:02:43 -0700 |
| commit | ba6e5cbfd279583dcc724f6a74a5593fa26ad5df (patch) | |
| tree | 8cf75e04b987873bf82f914eee4c39ef75c3fe3a /src/link.cpp | |
| parent | c0654d2db2cd66ee59f2147fbbb19d890e70bed1 (diff) | |
| download | zig-ba6e5cbfd279583dcc724f6a74a5593fa26ad5df.tar.gz zig-ba6e5cbfd279583dcc724f6a74a5593fa26ad5df.zip | |
stage2: add the .debug_line header and associated data types
* the .debug_line header is written properly
* link.File.Elf gains:
- SrcFn, which is now a field in Module.Fn
- SrcFile, which is now a field in Module.Scope.File
* link.File.Elf gets a whole *Package field rather than only
root_src_dir_path.
* the fields first_dbg_line_file and last_dbg_line_file tell where the
Line Number Program begins and ends, which alows moving files when
the header gets too big, and allows appending files to the end.
* codegen is passed a buffer for emitting .debug_line
Line Number Program opcodes for functions.
See #5963
There is some work-in-progress code here, but I need to go make some
experimental changes to changing how to represent source locations and I
want to do that in a separate commit.
Diffstat (limited to 'src/link.cpp')
0 files changed, 0 insertions, 0 deletions
