mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-1932 Decompiler support for address space attribute on pointers
This commit is contained in:
parent
31b30adf2d
commit
7078885aea
12 changed files with 710 additions and 366 deletions
|
@ -21,8 +21,7 @@ import java.util.List;
|
|||
import org.xml.sax.*;
|
||||
|
||||
import ghidra.program.model.address.Address;
|
||||
import ghidra.program.model.data.DataType;
|
||||
import ghidra.program.model.data.VoidDataType;
|
||||
import ghidra.program.model.data.*;
|
||||
import ghidra.program.model.lang.*;
|
||||
import ghidra.program.model.listing.*;
|
||||
import ghidra.program.model.listing.Function.FunctionUpdateType;
|
||||
|
@ -265,7 +264,7 @@ public class HighParamID extends PcodeSyntaxTree {
|
|||
dataType = pm.getDataType();
|
||||
}
|
||||
else {
|
||||
dataType = dtManage.findUndefined(vn.getSize());
|
||||
dataType = Undefined.getUndefinedDataType(vn.getSize());
|
||||
}
|
||||
//Msg.debug(this, "func: " + func.getName() + " -- type: " + dataType.getName());
|
||||
if (!(dataType == null || dataType instanceof VoidDataType)) {
|
||||
|
@ -298,7 +297,7 @@ public class HighParamID extends PcodeSyntaxTree {
|
|||
dataType = pm.getDataType();
|
||||
}
|
||||
else {
|
||||
dataType = dtManage.findUndefined(vn.getSize());
|
||||
dataType = Undefined.getUndefinedDataType(vn.getSize());
|
||||
}
|
||||
Variable v = new ParameterImpl(null, dataType, buildStorage(vn), func.getProgram());
|
||||
//Msg.debug(this, "function(" + func.getName() + ")--param: " + v.toString() +
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue