diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-10 22:27:20 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-10 22:27:20 -0300 |
| commit | 423e3817a106e5f926f1690943a1300d1f088676 (patch) | |
| tree | 3b0f9e7d2d71878c3829cd2734cfde98263d2554 /src/cli/record.zig | |
| parent | bbabc78dcfd00a98abb5ececae6761bccc496eb8 (diff) | |
| download | computeranim-423e3817a106e5f926f1690943a1300d1f088676.tar.gz computeranim-423e3817a106e5f926f1690943a1300d1f088676.zip | |
debugger: the red zone, and the region round what an instruction touches
The 128 bytes under the stack pointer are recorded with the stack; what
an instruction reads or writes is recorded with --around bytes each side
of it, as what a pointer leads to is: a viewer's memory panel shows the
neighbourhood, not the word.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Diffstat (limited to 'src/cli/record.zig')
| -rw-r--r-- | src/cli/record.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cli/record.zig b/src/cli/record.zig index 91b17d2..8f002f4 100644 --- a/src/cli/record.zig +++ b/src/cli/record.zig @@ -30,12 +30,13 @@ pub const usage = \\prints them, a line each. \\Of memory, only what is asked for is recorded, and of that the words \\that changed since the stop before: the --stack bytes above the stack - \\pointer (default 128) and each -w region, an address or a symbol, as + \\pointer (default 128; and the 128 under it) and each -w region, an address or a symbol, as \\long as the symbol unless LEN says. \\At every stop the registers and the top of the stack are also followed \\as pointers, --telescope deep (default 3, 0 for not at all): what they \\lead to is recorded with --around bytes each side of it (default 0: - \\the 32 at the place), code they lead to is named, and the instructions + \\the 32 at the place; what an instruction reads or writes likewise), + \\code they lead to is named, and the instructions \\at the pc are disassembled, --disasm rows above it and below (default \\8), so that a viewer can show what pwndbg's context shows. \\--steps ends the recording after N moments, and --max-size when the |
