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/07-sort-swap.svg | 132 +++++++++++++++++++++---------------------- 1 file changed, 66 insertions(+), 66 deletions(-) (limited to 'design/mock/07-sort-swap.svg') diff --git a/design/mock/07-sort-swap.svg b/design/mock/07-sort-swap.svg index 6e866e5..17fec50 100644 --- a/design/mock/07-sort-swap.svg +++ b/design/mock/07-sort-swap.svg @@ -2,7 +2,7 @@ Insertion sort -sort.c:6 +sort.c:6 kernel memory @@ -19,111 +19,111 @@ a int a[8] -0 -4 +0 +4 -1 -9 +1 +9 -2 -17 +2 +17 -3 +3 -j-1 -31 +j-1 +31 -4 +4 -j -12 +j +12 -5 +5 -i -26 +i +26 -6 -5 +6 +5 -7 -20 +7 +20 -31 > 12 +31 > 12 so they trade places -31 +31 -12 +12 sort.c -3 -for -( -int -i = -1 -; i < n; i++) { -4 -int -j = i; +3 +for +( +int +i = +1 +; i < n; i++) { +4 +int +j = i; -5 -while -(j > -0 -&& a[j-1] > a[j]) { +5 +while +(j > +0 +&& a[j-1] > a[j]) { -6 -swap(&a[j-1], &a[j]); +6 +swap(&a[j-1], &a[j]); -7 -j--; +7 +j--; locals of sort() -i -int -5 -j -int +i +int +5 +j +int -4 -n -int -8 -a -int * -7 -f -f -d -3 -a -2 -c -1 -e -2 -0 +4 +n +int +8 +a +int * +7 +f +f +d +3 +a +2 +c +1 +e +2 +0 where a[0] is While the one on the left is larger, they trade places, -and j follows the smaller value down. +and j follows the smaller value down. -- cgit v1.3