mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Merge remote-tracking branch
'origin/GP-5639-dragonmacher-decompiler-exceptions' (Closes #8111, Closes #8114)
This commit is contained in:
commit
f9b3499231
3 changed files with 14 additions and 0 deletions
|
@ -37,6 +37,11 @@ public class FunctionNameDecompilerLocation extends FunctionNameFieldLocation
|
||||||
this.info = info;
|
this.info = info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FunctionNameDecompilerLocation() {
|
||||||
|
// for restoring from xml
|
||||||
|
info = new DecompilerLocationInfo();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Address getFunctionEntryPoint() {
|
public Address getFunctionEntryPoint() {
|
||||||
return info.getFunctionEntryPoint();
|
return info.getFunctionEntryPoint();
|
||||||
|
|
|
@ -38,6 +38,11 @@ public class VariableDecompilerLocation extends VariableLocFieldLocation
|
||||||
this.info = info;
|
this.info = info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public VariableDecompilerLocation() {
|
||||||
|
// for restoring from xml
|
||||||
|
info = new DecompilerLocationInfo();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Address getFunctionEntryPoint() {
|
public Address getFunctionEntryPoint() {
|
||||||
return info.getFunctionEntryPoint();
|
return info.getFunctionEntryPoint();
|
||||||
|
|
|
@ -517,6 +517,10 @@ public class HighFunctionDBUtil {
|
||||||
|
|
||||||
public static Variable getFunctionVariable(HighSymbol highSymbol) {
|
public static Variable getFunctionVariable(HighSymbol highSymbol) {
|
||||||
|
|
||||||
|
if (highSymbol == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
HighFunction highFunction = highSymbol.getHighFunction();
|
HighFunction highFunction = highSymbol.getHighFunction();
|
||||||
Function function = highFunction.getFunction();
|
Function function = highFunction.getFunction();
|
||||||
HighVariable highVar = highSymbol.getHighVariable();
|
HighVariable highVar = highSymbol.getHighVariable();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue