-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
incremental: debug line number updates #22412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Using the const std = @import("std");
pub fn main() !void {
try std.io.getStdOut().writeAll("foo\n");
}After which we have a binary containing this debug info for Which when debugged with a breakpoint on The source code for the second incremental update is: const std = @import("std");
pub fn main() !void {
try std.io.getStdOut().writeAll("foo\n");
}Which calls the following exhaustive list of dwarf update functions: Which directly modifies the debug info in the binary for Which when debugged again displays: |
|
Using the const std = @import("std");
fn Printer(message: []const u8) type {
return struct {
fn print() !void {
try std.io.getStdOut().writeAll(message);
}
};
}
pub fn main() !void {
try Printer("foo\n").print();
try Printer("bar\n").print();
}After which we have a binary containing this debug info for Which when debugged displays: The source code for the second incremental update is: const std = @import("std");
fn Printer(message: []const u8) type {
return struct {
fn print() !void {
try std.io.getStdOut().writeAll(message);
}
};
}
pub fn main() !void {
try Printer("foo\n").print();
try Printer("bar\n").print();
}Which calls the following exhaustive list of dwarf update functions: Which directly modifies the debug info in the binary for the generic origin of Which when debugged again displays: |
No description provided.