diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-10 23:34:16 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-10 23:36:18 -0300 |
| commit | 2a46b60e1d115ff5149a112bc0f800467c0efaee (patch) | |
| tree | 50a700c33d20b4f7aa078d67c928a68d3e3f7c5f /build | |
| parent | 2a97030c9743d4680d698414c28e8d8739614215 (diff) | |
| download | computeranim-2a46b60e1d115ff5149a112bc0f800467c0efaee.tar.gz computeranim-2a46b60e1d115ff5149a112bc0f800467c0efaee.zip | |
record: --steps counts from the --from place
The loader's syscalls on the way to main used up the count: --steps 120
on a dynamic program left ninety instructions.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'build')
| -rw-r--r-- | build/debugger.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/debugger.zig b/build/debugger.zig index cb67354..7b90454 100644 --- a/build/debugger.zig +++ b/build/debugger.zig @@ -103,11 +103,13 @@ pub fn add(ctx: Ctx) void { from.addArg("--"); from.addArtifactArg(fib); from.addArg("10"); - from.expectStdErrMatch(" 64 moments, "); + from.expectStdErrMatch(" moments, "); const from_show = b.addRunArtifact(ctx.exe); from_show.addArg("show"); from_show.addFileArg(from_recording); from_show.expectStdOutMatch(" 1 breakpoint\n"); + // The 64 are counted from fib, whatever the loader did before. + from_show.expectStdOutMatch(" 64 step\n"); step.dependOn(&from_show.step); // ... and by syscall: the loader's own are passed, not taken for the place. const from_sys = b.addRunArtifact(ctx.exe); |
