stage2 .debug_line stepping with gdb is working

This commit is contained in:
Andrew Kelley
2020-08-03 21:01:06 -07:00
parent ac10841fa9
commit d624bf8059
4 changed files with 100 additions and 44 deletions

View File

@@ -1484,6 +1484,9 @@ fn getAstTree(self: *Module, root_scope: *Scope.File) !*ast.Tree {
}
fn analyzeRootSrcFile(self: *Module, root_scope: *Scope.File) !void {
const tracy = trace(@src());
defer tracy.end();
// We may be analyzing it for the first time, or this may be
// an incremental update. This code handles both cases.
const tree = try self.getAstTree(root_scope);