(
outputFilename: string,
result: CompilationResult,
maxSize: number,
intelAsm: boolean,
demangle: boolean,
staticReloc: boolean,
dynamicReloc: boolean,
filters: ParseFiltersAndOutputOptions,
)
| 58 | } |
| 59 | |
| 60 | override async objdump( |
| 61 | outputFilename: string, |
| 62 | result: CompilationResult, |
| 63 | maxSize: number, |
| 64 | intelAsm: boolean, |
| 65 | demangle: boolean, |
| 66 | staticReloc: boolean, |
| 67 | dynamicReloc: boolean, |
| 68 | filters: ParseFiltersAndOutputOptions, |
| 69 | ) { |
| 70 | if (!outputFilename.endsWith('.elf') && (await utils.fileExists(outputFilename + '.elf'))) { |
| 71 | outputFilename = outputFilename + '.elf'; |
| 72 | } |
| 73 | |
| 74 | intelAsm = false; |
| 75 | const res = await super.objdump( |
| 76 | outputFilename, |
| 77 | result, |
| 78 | maxSize, |
| 79 | intelAsm, |
| 80 | demangle, |
| 81 | staticReloc, |
| 82 | dynamicReloc, |
| 83 | filters, |
| 84 | ); |
| 85 | |
| 86 | if (this.compiler.exe.includes('nes')) { |
| 87 | let nesFile = outputFilename; |
| 88 | if (outputFilename.endsWith('.elf')) { |
| 89 | nesFile = outputFilename.substring(0, outputFilename.length - 4); |
| 90 | } |
| 91 | |
| 92 | if (await utils.fileExists(nesFile)) { |
| 93 | await addArtifactToResult(res, nesFile, ArtifactType.nesrom); |
| 94 | } |
| 95 | } else if (this.compiler.exe.includes('c64')) { |
| 96 | let prgFile = outputFilename; |
| 97 | if (outputFilename.endsWith('.elf')) { |
| 98 | prgFile = outputFilename.substring(0, outputFilename.length - 4); |
| 99 | } |
| 100 | |
| 101 | if (await utils.fileExists(prgFile)) { |
| 102 | await addArtifactToResult(res, prgFile, ArtifactType.c64prg); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | return res; |
| 107 | } |
| 108 | } |
nothing calls this directly
no test coverage detected