mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
Merge remote-tracking branch 'origin/Ghidra_9.2'
This commit is contained in:
commit
038b701670
39 changed files with 710 additions and 151 deletions
|
@ -129,6 +129,11 @@ public final class DataUtilities {
|
|||
return data;
|
||||
}
|
||||
|
||||
if (clearMode == ClearDataMode.CLEAR_ALL_UNDEFINED_CONFLICT_DATA &&
|
||||
!Undefined.isUndefined(existingDT)) {
|
||||
throw new CodeUnitInsertionException("Could not create Data at address " + addr);
|
||||
}
|
||||
|
||||
// Check for external reference on pointer
|
||||
if (existingDT instanceof Pointer) {
|
||||
// TODO: This can probably be eliminated
|
||||
|
@ -199,11 +204,6 @@ public final class DataUtilities {
|
|||
private static void checkEnoughSpace(Program program, Address addr, int existingDataLen,
|
||||
DataTypeInstance dti, ClearDataMode mode) throws CodeUnitInsertionException {
|
||||
Listing listing = program.getListing();
|
||||
// int newSize = dti.getLength();
|
||||
// if (newSize <= existingDataLen) {
|
||||
// listing.clearCodeUnits(addr, addr, false);
|
||||
// return;
|
||||
// }
|
||||
try {
|
||||
Address end = addr.addNoWrap(existingDataLen - 1);
|
||||
Address newEnd = addr.addNoWrap(dti.getLength() - 1);
|
||||
|
|
|
@ -60,7 +60,7 @@ public class PointerDataType extends BuiltIn implements Pointer {
|
|||
* organization when resolved.
|
||||
*/
|
||||
public PointerDataType() {
|
||||
this(DataType.DEFAULT, -1, null);
|
||||
this(null, -1, null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -72,7 +72,7 @@ public class PointerDataType extends BuiltIn implements Pointer {
|
|||
* @param dtm data-type manager whose data organization should be used
|
||||
*/
|
||||
public PointerDataType(DataTypeManager dtm) {
|
||||
this(DataType.DEFAULT, -1, dtm);
|
||||
this(null, -1, dtm);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -119,12 +119,12 @@ public interface GraphDisplay {
|
|||
/**
|
||||
* Sets the graph to be displayed or consumed by this graph display
|
||||
* @param graph the graph to display or consume
|
||||
* @param description a description of the graph
|
||||
* @param title a title for the graph
|
||||
* @param monitor a {@link TaskMonitor} which can be used to cancel the graphing operation
|
||||
* @param append if true, append the new graph to any existing graph.
|
||||
* @throws CancelledException thrown if the graphing operation was cancelled
|
||||
*/
|
||||
public void setGraph(AttributedGraph graph, String description, boolean append,
|
||||
public void setGraph(AttributedGraph graph, String title, boolean append,
|
||||
TaskMonitor monitor)
|
||||
throws CancelledException;
|
||||
|
||||
|
@ -141,10 +141,10 @@ public interface GraphDisplay {
|
|||
public void updateVertexName(AttributedVertex vertex, String newName);
|
||||
|
||||
/**
|
||||
* Returns the description of the current graph
|
||||
* @return the description of the current graph
|
||||
* Returns the title of the current graph
|
||||
* @return the title of the current graph
|
||||
*/
|
||||
public String getGraphDescription();
|
||||
public String getGraphTitle();
|
||||
|
||||
/**
|
||||
* Adds the action to the graph display. Not all GraphDisplays support adding custom
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue