GP-0 Improved process error handling for Decompiler and GNU Demangler.

Corrected minor GNU Demangler demangler command and script issues.
This commit is contained in:
ghidra1 2024-06-06 15:11:14 -04:00
parent 7079179b59
commit 3ebc46a2ca
6 changed files with 128 additions and 20 deletions

View file

@ -104,7 +104,12 @@ public class DemangleSymbolScript extends GhidraScript {
println("Successfully demangled\n" + name + '\n' + cmd.getResult());
}
else {
println("Failed to demangle\n" + name + '\n' + cmd.getStatusMsg());
String statusMsg = cmd.getStatusMsg();
String msg = "Failed to demangle\n" + name;
if (statusMsg != null) {
msg += "\n" + statusMsg;
}
println(msg);
}
}
}