summaryrefslogtreecommitdiff
path: root/build/debugger.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-11 11:26:59 -0300
committerGabriel Schneider <[email protected]>2026-11-11 11:27:09 -0300
commitdcbe8941df205fa8c8805b022f025e1012dede19 (patch)
tree9b4df7f904077c07eab979cb10aba9d6a3becf10 /build/debugger.zig
parent6142fa676731e158622ca7956c150c58bc57f1f2 (diff)
downloadcomputeranim-dcbe8941df205fa8c8805b022f025e1012dede19.tar.gz
computeranim-dcbe8941df205fa8c8805b022f025e1012dede19.zip
symbols: a library's separate debug info, when it is of the same build
The system glibc stays dynamically linked and is symbolized from the debug file in the debuginfod client's cache or under /usr/lib/debug, used only when its own build id equals the mapped library's; nothing is downloaded. Static functions get names (the loader's resolver is _dl_runtime_resolve_xsavec; main_arena is found by symbol), libc's frames their file and line as the build saw them, and locals, blocks and parameter counts follow. A recording says of each module its build id and where its names came from; ztrace show prints it. Read only when an address in the module needs a name: 44 ms and 25 MB at the first one. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'build/debugger.zig')
-rw-r--r--build/debugger.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/debugger.zig b/build/debugger.zig
index bd6a18d..47547e8 100644
--- a/build/debugger.zig
+++ b/build/debugger.zig
@@ -134,7 +134,7 @@ pub fn add(ctx: Ctx) void {
entry.addArg("--");
entry.addArtifactArg(libc_glibc);
entry.setStdIn(.{ .bytes = "b main\nr\nsi\nsi\nsi\ncontext\nquit\n" });
- for ([_][]const u8{ " malloc@plt+0\n", " rip ", " (libc.so.6!malloc+0)\n", " libc.so.6!malloc+0\n #1 ", " main+14\n" }) |expected| entry.expectStdOutMatch(expected);
+ for ([_][]const u8{ " malloc@plt+0\n", " rip ", " (libc.so.6!malloc+0)\n", " #0 ", " libc.so.6!malloc+0", " #1 ", " main+14" }) |expected| entry.expectStdOutMatch(expected);
step.dependOn(&entry.step);
// From a place on, by instruction: what ran before fib is no moment but its syscalls.