Skip to main content

Module stacktrace

Module stacktrace 

Source
Expand description

Stack-trace metadata harvester.

Every Nim proc compiled with --stackTrace:on (the default for debug builds) embeds a procname and filename cstring pair via the nimfr_() frame-init macro (RESEARCH.md §5.2). This module scans read-only sections for those cstrings.

File paths end with .nim and may be absolute (revealing the build host) or relative (basename only).

Proc names are the remaining short, printable cstrings that look like Nim identifiers.

Structs§

FilePath
A .nim file path found in the binary.
StackTraceHarvest
Harvested stack-trace metadata from a Nim binary.

Functions§

harvest
Scans read-only sections for Nim stack-trace file paths and proc names.