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

Method getFunctionAtAddress

src/backend/symbols.ts:792–801  ·  view source on GitHub ↗
(address: number)

Source from the content-addressed store, hash-verified

790 }
791*/
792 public getFunctionAtAddress(address: number): SymbolInformation {
793 const symNodes = this.symbolsAsIntervalTree.search(address, address);
794 for (const symNode of symNodes) {
795 if (symNode && (symNode.symbol.type === SymbolType.Function)) {
796 return symNode.symbol;
797 }
798 }
799 return null;
800 // return this.allSymbols.find((s) => s.type === SymbolType.Function && s.address <= address && (s.address + s.length) > address);
801 }
802
803 public getFunctionSymbols(): SymbolInformation[] {
804 return this.allSymbols.filter((s) => s.type === SymbolType.Function);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected