diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-11 11:51:02 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-11 11:52:21 -0300 |
| commit | 05160b340bc0677a9ab29c2379b09475f54bb4eb (patch) | |
| tree | ac07965e560cf80bf447db3f9456bd832745cedc /src/trace | |
| parent | beb2616a243e01826c3103209d5525381a5da73d (diff) | |
| download | computeranim-05160b340bc0677a9ab29c2379b09475f54bb4eb.tar.gz computeranim-05160b340bc0677a9ab29c2379b09475f54bb4eb.zip | |
trace: an instruction's bytes are in the recording; show prints a mapping's permissions
For an introduction that shows bytes becoming an instruction, and the
address space as segments.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'src/trace')
| -rw-r--r-- | src/trace/Debugger.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/trace/Debugger.zig b/src/trace/Debugger.zig index 2cef5ca..4ca7eca 100644 --- a/src/trace/Debugger.zig +++ b/src/trace/Debugger.zig @@ -627,6 +627,8 @@ fn emitInstruction(d: *Debugger, insnAt: @typeInfo(@TypeOf(d.disasm)).optional.c len += 2 + @sizeOf(Line); } try d.emit(.{ .kind = .string, .a = .{ event.codeId(addr), 0, 0, 0, 0, 0 } }, text[0..len]); + // Its bytes too, as memory: a viewer can show what the text was decoded from. + try d.snapshot(addr, insn.len); try d.code_len.put(d.gpa, addr, insn.len); return insn.len; } |
