(
outputFilename: string,
result: any,
maxSize: number,
intelAsm: boolean,
demangle: boolean,
staticReloc: boolean | undefined,
dynamicReloc: boolean,
filters: ParseFiltersAndOutputOptions,
)
| 147 | } |
| 148 | |
| 149 | override async objdump( |
| 150 | outputFilename: string, |
| 151 | result: any, |
| 152 | maxSize: number, |
| 153 | intelAsm: boolean, |
| 154 | demangle: boolean, |
| 155 | staticReloc: boolean | undefined, |
| 156 | dynamicReloc: boolean, |
| 157 | filters: ParseFiltersAndOutputOptions, |
| 158 | ): Promise<any> { |
| 159 | // Decompile to assembly via `raco decompile` with `disassemble` package |
| 160 | const execOptions: ExecutionOptions = { |
| 161 | maxOutput: maxSize, |
| 162 | customCwd: (result.dirPath as string) || path.dirname(outputFilename), |
| 163 | }; |
| 164 | const decompileResult = await this.exec(this.raco, ['decompile', outputFilename], execOptions); |
| 165 | |
| 166 | if (decompileResult.code) { |
| 167 | logger.error('Error decompiling via `raco decompile`', decompileResult); |
| 168 | result.asm = `<No output: \`raco decompile\` returned ${decompileResult.code}>`; |
| 169 | } |
| 170 | |
| 171 | result.objdumpTime = decompileResult.execTime; |
| 172 | result.asm = this.postProcessObjdumpOutput(decompileResult.stdout); |
| 173 | |
| 174 | return result; |
| 175 | } |
| 176 | |
| 177 | override async processAsm(result: any, filters: ParseFiltersAndOutputOptions, options: string[]) { |
| 178 | // TODO: Process and highlight decompiled output |
nothing calls this directly
no test coverage detected