summaryrefslogtreecommitdiff
path: root/anim/src/root.zig
diff options
context:
space:
mode:
Diffstat (limited to 'anim/src/root.zig')
-rw-r--r--anim/src/root.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/anim/src/root.zig b/anim/src/root.zig
index 2f59420..d68b99c 100644
--- a/anim/src/root.zig
+++ b/anim/src/root.zig
@@ -225,6 +225,10 @@ pub const Context = struct {
syscalls: bool = false,
/// An instrumented program: see `Registers.quiet`.
quiet: bool = false,
+ /// The `backtrace` lens: the call chain as the band's drawing
+ /// (eleven rows as subject, five beside), when how the program came
+ /// to be here is the story; the scene adds the drawing's view.
+ backtrace: bool = false,
};
/// The ties between the panes, drawn over everything added before.
@@ -263,7 +267,7 @@ pub fn context(s: *anim.Frame, cursor_: Cursor, options: Context.Options) Contex
.disasm = add(s, Disasm{ .cursor = at, .stage = stage }),
.registers = add(s, Registers{ .cursor = at, .stage = stage, .syscalls = options.syscalls, .quiet = options.quiet }),
.stack = add(s, Stack{ .cursor = at, .stage = stage }),
- .backtrace = add(s, Backtrace{ .cursor = at, .stage = stage }),
+ .backtrace = add(s, Backtrace{ .cursor = at, .stage = stage, .lens = options.backtrace }),
.clock = add(s, Clock{ .cursor = at }),
};
}