mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 01:39:21 +02:00
GP-1633 added new DataUtilities.createData method without stackPointers
param
This commit is contained in:
parent
acb07dd535
commit
14b78c1307
29 changed files with 80 additions and 65 deletions
|
@ -238,7 +238,7 @@ public abstract class AbstractCreateDataBackgroundCmd<T extends AbstractCreateDa
|
|||
monitor.checkCanceled();
|
||||
|
||||
// Create data at the address using the datatype.
|
||||
DataUtilities.createData(program, address, dt, dt.getLength(), false, getClearDataMode());
|
||||
DataUtilities.createData(program, address, dt, dt.getLength(), getClearDataMode());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ public class CreateTypeDescriptorBackgroundCmd
|
|||
// Create 'name' char[0] data at the address immediately following structure
|
||||
Program program = model.getProgram();
|
||||
Data nameData = DataUtilities.createData(program, arrayAddr, charArray,
|
||||
charArray.getLength(), false, getClearDataMode());
|
||||
charArray.getLength(), getClearDataMode());
|
||||
|
||||
nameData.setComment(CodeUnit.EOL_COMMENT, "TypeDescriptor.name");
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ public class CreateVfTableBackgroundCmd extends AbstractCreateDataBackgroundCmd<
|
|||
return false;
|
||||
}
|
||||
Data data = DataUtilities.createData(program, terminatorAddress,
|
||||
PointerDataType.dataType, -1, false, getClearDataMode());
|
||||
PointerDataType.dataType, -1, getClearDataMode());
|
||||
TypeDescriptorModel rtti0Model = model.getRtti0Model();
|
||||
if (rtti0Model != null) {
|
||||
monitor.checkCanceled();
|
||||
|
@ -142,7 +142,7 @@ public class CreateVfTableBackgroundCmd extends AbstractCreateDataBackgroundCmd<
|
|||
DataType metaPointer = new PointerDataType(program.getDataTypeManager());
|
||||
try {
|
||||
DataUtilities.createData(program, metaAddress, metaPointer, metaPointer.getLength(),
|
||||
false, getClearDataMode());
|
||||
getClearDataMode());
|
||||
return true;
|
||||
}
|
||||
catch (CodeUnitInsertionException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue