From f8740f6996eefc235af066a6686f52847c158a6b Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 14:12:42 -0300 Subject: design, revision 2: the whole context in every frame, a lens beside it The user's premise: show what pwndbg shows, hide nothing; the semantic views stay as a lens on the machine. So every frame holds the registers (all, each followed as a pointer), the stack telescope and the backtrace in a column that never changes, and the source, the disassembly and the scene's lens in the other. A value's ink says where it points (stack, heap, code, data; rwx underlined), its paper says what happened to it. JetBrains Mono NL for everything mono; the floor is mono 20, which a phone does not read: what narration depends on is also in the caption. Mocks 9 to 11 are drawn from a real recording of targets/list. --- design/mock/01-fib-recursion.svg | 346 +++++++++++++++++++-------------------- 1 file changed, 173 insertions(+), 173 deletions(-) (limited to 'design/mock/01-fib-recursion.svg') diff --git a/design/mock/01-fib-recursion.svg b/design/mock/01-fib-recursion.svg index 1cb0378..b96f70a 100644 --- a/design/mock/01-fib-recursion.svg +++ b/design/mock/01-fib-recursion.svg @@ -2,7 +2,7 @@ Recursion -fib(5) +fib(5) kernel memory @@ -17,56 +17,56 @@ fib.c -1 -#include -<stdio.h> -2 +1 +#include +<stdio.h> +2 -3 -long -fib( -long -n) { +3 +long +fib( +long +n) { -4 -if -(n < -2 -) -5 -return -n; +4 +if +(n < +2 +) +5 +return +n; -6 -return -fib(n- -1 -) + fib(n- -2 -); -7 -} -8 -9 -int -main( -void -) { -10 -printf( -"%ld\n" -, fib( -5 -)); -11 -return -0 -; -12 -} +6 +return +fib(n- +1 +) + fib(n- +2 +); +7 +} +8 +9 +int +main( +void +) { +10 +printf( +"%ld\n" +, fib( +5 +)); +11 +return +0 +; +12 +} -n = 1 +n = 1 @@ -86,58 +86,58 @@ -5 +5 -4 +4 -3 +3 -3 +3 -3 +3 -2 +2 -2 +2 -1 +1 -2 +2 -2 +2 -1 +1 -1 +1 -1 +1 -1 +1 -1 +1 -0 +0 -0 +0 -1 +1 -1 +1 -1 +1 -0 +0 -0 +0 @@ -146,28 +146,28 @@ newest on top -fib -n = 1 -:4 +fib +n = 1 +:4 -fib -n = 2 -:6 +fib +n = 2 +:6 -fib -n = 3 -:6 +fib +n = 3 +:6 -fib -n = 5 -:6 +fib +n = 5 +:6 -main -:10 +main +:10 @@ -176,107 +176,107 @@ x86-64 -0 -0 -0 -0 -5 -5 -d -4 -a -1 -c -0 -1 -1 -4 -1 -rip +0 +0 +0 +0 +5 +5 +d +4 +a +1 +c +0 +1 +1 +4 +1 +rip -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -1 -rax +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +1 +rax -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -1 -rdi +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +1 +rdi -0 -0 -0 -0 -7 -f -f -d -3 -a -2 -c -1 -d -c -0 -rsp -0 -0 -0 -0 -7 -f -f -d -3 -a -2 -c -1 -d -e -0 -rbp +0 +0 +0 +0 +7 +f +f +d +3 +a +2 +c +1 +d +c +0 +rsp +0 +0 +0 +0 +7 +f +f +d +3 +a +2 +c +1 +d +e +0 +rbp -CF +CF -ZF +ZF -SF +SF -OF -Four calls to fib are still waiting, each with its own n. -The newest one just received 1 in rdi. +OF +Four calls to fib are still waiting, each with its own n. +The newest one just received 1 in rdi. -- cgit v1.3