GP-1633 added new DataUtilities.createData method without stackPointers

param
This commit is contained in:
ghidra1 2023-03-23 16:17:58 -04:00
parent acb07dd535
commit 14b78c1307
29 changed files with 80 additions and 65 deletions

View file

@ -128,6 +128,22 @@ public final class DataUtilities {
return false;
}
/**
* Create data where existing data may already exist. Pointer datatype stacking will not
* be performed.
* @param program the program
* @param addr data address (offcut data address only allowed if clearMode == ClearDataMode.CLEAR_ALL_CONFLICT_DATA)
* @param newType new data-type being applied
* @param length data length (used only for Dynamic newDataType which has canSpecifyLength()==true)
* @param clearMode see CreateDataMode
* @return new data created
* @throws CodeUnitInsertionException if data creation failed
*/
public static Data createData(Program program, Address addr, DataType newType, int length,
ClearDataMode clearMode) throws CodeUnitInsertionException {
return createData(program, addr, newType, length, false, clearMode);
}
/**
* Create data where existing data may already exist.
* @param program the program

View file

@ -672,7 +672,7 @@ public class HighFunctionDBUtil {
}
try {
return DataUtilities.createData(program, addr, dt, -1, false,
return DataUtilities.createData(program, addr, dt, -1,
DataUtilities.ClearDataMode.CHECK_FOR_SPACE);
}
catch (CodeUnitInsertionException e) {