MCPcopy Create free account
hub / github.com/Marus/cortex-debug / readNmSymbolLine

Method readNmSymbolLine

src/backend/symbols.ts:627–637  ·  view source on GitHub ↗
(symF: SymbolFile, line: string, err: any)

Source from the content-addressed store, hash-verified

625
626 private addressToFileOrig: Map<number, string> = new Map<number, string>(); // These are addresses used before re-mapped via symbol-files
627 private readNmSymbolLine(symF: SymbolFile, line: string, err: any): boolean {
628 const match = line && line.match(NM_SYMBOL_RE);
629 if (match) {
630 const offset = symF.offset || 0;
631 const address = parseInt(match[1], 16) + offset;
632 const file = SymbolTable.NormalizePath(match[2]);
633 this.addressToFileOrig.set(address, file);
634 this.addPathVariations(file);
635 }
636 return true;
637 }
638
639 public updateSymbolSize(node: SymbolNode, len: number) {
640 this.symbolsAsIntervalTree.remove(node);

Callers

nothing calls this directly

Calls 2

addPathVariationsMethod · 0.95
NormalizePathMethod · 0.80

Tested by

no test coverage detected