mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-0 Ensure Program.getCompiler() returns "unknown" instead of null
This commit is contained in:
parent
53275c92f8
commit
6242fda158
3 changed files with 5 additions and 3 deletions
|
@ -911,11 +911,13 @@ public class DBTraceProgramView implements TraceProgramView {
|
|||
|
||||
@Override
|
||||
public String getCompiler() {
|
||||
return null;
|
||||
// TODO: not yet implemented
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCompiler(String compiler) {
|
||||
// TODO: not yet implemented
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ public class RustDemangler implements Demangler {
|
|||
@Override
|
||||
public boolean canDemangle(Program program) {
|
||||
String name = program.getCompiler();
|
||||
return name != null && name.contains("rustc");
|
||||
return name.contains("rustc");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -397,7 +397,7 @@ public class StubProgram implements Program {
|
|||
|
||||
@Override
|
||||
public String getCompiler() {
|
||||
throw new UnsupportedOperationException();
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue