summaryrefslogtreecommitdiff
path: root/gui/targets
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-13 12:30:37 -0300
committerGabriel Schneider <[email protected]>2026-11-13 12:31:12 -0300
commit5adffa613619eea42405d0cfdb402705e0f4751f (patch)
tree5835048cf6a29a449182fba71c67a2583ed6335d /gui/targets
parent4f31aaef1338b53195f8c475db5a72d75cc1fc82 (diff)
downloadcomputeranim-5adffa613619eea42405d0cfdb402705e0f4751f.tar.gz
computeranim-5adffa613619eea42405d0cfdb402705e0f4751f.zip
debugger: make hexdump pointer bytes clickable in every integer grouping
Publish full pointer spans from the shared byte renderer and grouped numeric rows. Both mouse buttons now use the existing lens/navigation handlers even in 8-bit view, including zero padding. Reject pointer hits when any constituent byte is uncaptured. Verified native/headless left and right clicks, recursive lenses, stack destinations, and GUI/shared-renderer suites.
Diffstat (limited to 'gui/targets')
-rw-r--r--gui/targets/segments.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/targets/segments.c b/gui/targets/segments.c
index 0fdc25f..c52ad3b 100644
--- a/gui/targets/segments.c
+++ b/gui/targets/segments.c
@@ -7,9 +7,12 @@
struct node { struct node *next; uint64_t value; };
struct node head, middle, tail;
volatile uint64_t counter;
+uint64_t *stack_pointer;
__attribute__((noinline)) void checkpoint(void) { __asm__ volatile("" ::: "memory"); }
int main(void) {
+ uint64_t stack_value = 42;
+ stack_pointer = &stack_value;
const size_t size = (size_t)1 << 32;
int fd = memfd_create("ztrace-test-segment", 0);
assert(fd >= 0 && ftruncate(fd, size) == 0);