mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +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
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue