Expand description
The legacy srcmap debug format.
Solidity compilers can emit source mappings as a compact s:l:f:j:m string alongside
the bytecode, with fields inherited from the previous entry when omitted. This module
parses that format and builds the program-counter index for it, which requires walking
the bytecode so PUSH immediates are not mistaken for opcodes.
This is a fallback path. ETHDebug is the primary source of debug information and carries strictly more of it; prefer it whenever the compiler can produce it.
Structs§
- Source
MapEntry - Source
MapInfo - Source
MapProgram - A legacy source-map program adapted to the common debug-info model.
Enums§
- Source
MapEnvironment - The bytecode environment described by a legacy source map.
Functions§
- build_
pc_ to_ instruction_ map - is_
legacy_ compiler - load_
source_ map_ program - Loads one program from
combined.jsonwhen the requested source map exists. - load_
source_ map_ program_ with_ sources - The same, also looking for the sources it names in
source_roots. - parse_
srcmap