mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
Merge remote-tracking branch
'origin/GP-2456_datatypes_of_HighConstants--SQUASHED' (Closes #4512)
This commit is contained in:
commit
d59b45253d
1 changed files with 4 additions and 1 deletions
|
@ -18,6 +18,7 @@ package ghidra.program.model.pcode;
|
|||
import ghidra.program.model.address.Address;
|
||||
import ghidra.program.model.data.AbstractIntegerDataType;
|
||||
import ghidra.program.model.data.DataType;
|
||||
import ghidra.program.model.listing.Data;
|
||||
import ghidra.program.model.listing.Program;
|
||||
import ghidra.program.model.scalar.Scalar;
|
||||
|
||||
|
@ -112,7 +113,9 @@ public class HighConstant extends HighVariable {
|
|||
PcodeOp op = ((VarnodeAST) represent).getLoneDescend();
|
||||
Address addr = HighFunctionDBUtil.getSpacebaseReferenceAddress(program, op);
|
||||
if (addr != null) {
|
||||
symbol = globalMap.newSymbol(symref, addr, DataType.DEFAULT, 1);
|
||||
Data data = program.getListing().getDataAt(addr);
|
||||
DataType dt = data == null ? DataType.DEFAULT : data.getDataType();
|
||||
symbol = globalMap.newSymbol(symref, addr, dt, data.getLength());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue