Skip to content

Commit

Permalink
ida error output window
Browse files Browse the repository at this point in the history
  • Loading branch information
tintinweb committed Jul 20, 2022
1 parent f88dc29 commit 7330561
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/features/commands/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ ${fs.readFileSync(outputFilePath, 'utf8')};`;
});
}

idaDecompile(binaryPath, progressCallback, token) {
idaDecompile(binaryPath, progressCallback, token, onErrorCallback) {
let ctrl = this.ctrl;
return new Promise((resolve, reject) => {
let toolpath = settings.extensionConfig().tool.idaPro.path;
Expand Down Expand Up @@ -331,6 +331,13 @@ ${fs.readFileSync(outputFilePath, 'utf8')};`;
console.log(`${cmd.pid} - process killed - ${cmd.killed}`);
});
}
},
onStdErr: (data) => {
data = `${data}`;
console.log(data);
if(onErrorCallback){
onErrorCallback(data);
}
}
}
);
Expand Down
3 changes: 2 additions & 1 deletion src/features/decompile.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ class DecompileCtrl {
vscode.window.outputChannel.appendLine(` Decompiling ${uri.fsPath}`);
vscode.window.outputChannel.appendLine("====================================================================");
vscode.window.outputChannel.appendLine("");
vscode.window.outputChannel.appendLine("StdErr:");
vscode.window.outputChannel.appendLine("Errors: ");
vscode.window.outputChannel.appendLine("------- ");
vscode.window.outputChannel.appendLine("");

return this.decompile(
Expand Down

0 comments on commit 7330561

Please sign in to comment.