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

Method printFunc

src/backend/disasm.ts:812–819  ·  view source on GitHub ↗
(item: SymbolNode)

Source from the content-addressed store, hash-verified

810 private findDisasmRanges(trueStart: number, trueEnd: number, referenceAddress: number): DisasmRange[] {
811 const doDbgPrint = false;
812 const printFunc = (item: SymbolNode) => {
813 if (doDbgPrint) {
814 const file = item.symbol.file || '<unknown-file>';
815 const msg = `(${hexFormat(item.low)}, ${item.low}), (${hexFormat(item.high)}, ${item.high}) ${item.symbol.name} ${file}`;
816 this.handleMsg('stdout', msg + '\n');
817 console.log(msg);
818 }
819 };
820
821 if (doDbgPrint) {
822 this.handleMsg('stdout', `${hexFormat(trueStart)}, ${hexFormat(trueEnd)} Search range\n`);

Callers

nothing calls this directly

Calls 3

handleMsgMethod · 0.95
hexFormatFunction · 0.90
logMethod · 0.80

Tested by

no test coverage detected