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/02-list-insert.svg | 414 ++++++++++++++++++++--------------------- 1 file changed, 207 insertions(+), 207 deletions(-) (limited to 'design/mock/02-list-insert.svg') diff --git a/design/mock/02-list-insert.svg b/design/mock/02-list-insert.svg index 878740d..734a161 100644 --- a/design/mock/02-list-insert.svg +++ b/design/mock/02-list-insert.svg @@ -2,7 +2,7 @@ Linked lists -insert after a node +insert after a node kernel memory @@ -17,79 +17,79 @@ list.c -3 -struct -node { -4 -long -value; -5 -struct -node *next; -6 -}; +3 +struct +node { +4 +long +value; +5 +struct +node *next; +6 +}; -21 -n = malloc( -sizeof -*n); +21 +n = malloc( +sizeof +*n); -22 -n->value = v; +22 +n->value = v; -23 -n->next = at->next; +23 +n->next = at->next; -24 -at->next = n; -25 -return -n; +24 +at->next = n; +25 +return +n; locals -at -0 -0 -0 -0 -5 -5 -d -4 -a -1 -c -0 -3 -2 -a -0 +at +0 +0 +0 +0 +5 +5 +d +4 +a +1 +c +0 +3 +2 +a +0 node 7 -n -0 -0 -0 -0 -5 -5 -d -4 -a -1 -c -0 -3 -2 -e -0 +n +0 +0 +0 +0 +5 +5 +d +4 +a +1 +c +0 +3 +2 +e +0 node 9 -v -9 +v +9 @@ -97,29 +97,29 @@ the list what the code means -head - - +head + + -7 +7 -12 +12 -9 +9 - + - - - - -at -n + + + + +at +n the end @@ -131,156 +131,156 @@ malloc's own 16 bytes -55d4 -a1c0 -32a0 +55d4 +a1c0 +32a0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -7 -value -= 7 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +7 +value += 7 -at +at -55d4 -a1c0 -32a8 +55d4 +a1c0 +32a8 -0 -0 -0 -0 -5 -5 -d -4 -a -1 -c -0 -3 -2 -e -0 -next +0 +0 +0 +0 +5 +5 +d +4 +a +1 +c +0 +3 +2 +e +0 +next -55d4 -a1c0 -32c0 +55d4 +a1c0 +32c0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -c -value -= 12 -55d4 -a1c0 -32c8 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +c +value += 12 +55d4 +a1c0 +32c8 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -next -= NULL +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +next += NULL -55d4 -a1c0 -32e0 +55d4 +a1c0 +32e0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -9 -value -= 9 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +9 +value += 9 -n +n -55d4 -a1c0 -32e8 +55d4 +a1c0 +32e8 -0 -0 -0 -0 -5 -5 -d -4 -a -1 -c -0 -3 -2 -c -0 -next +0 +0 +0 +0 +5 +5 +d +4 +a +1 +c +0 +3 +2 +c +0 +next - - - - - - -Inserting moves nothing. One word changes: the next field of at + + + + + + +Inserting moves nothing. One word changes: the next field of at now holds the address of the new node. -- cgit v1.3