GP-1403 Improved support for auto-named typedefs. Updated create

typedef action from pointer to use auto-naming.  Replaced old
ImageBaseOffsetDataType 32/64-bit BuiltIn types with new pointer-typedef
based implementations. Improved settings modification
restrictions.  Resolved various bugs.
This commit is contained in:
ghidra1 2022-02-15 10:16:08 -05:00
parent ec5b6aada7
commit 8f0589a6d8
103 changed files with 2226 additions and 1156 deletions

View file

@ -679,11 +679,16 @@ public class DBHandle {
* @param outFile buffer file open for writing
* @param newDatabaseId database ID to be forced for new database or null to generate
* new database ID
* @param associateWithNewFile if true the outFile will be associated with this DBHandle as the
* current source file, if false no change will be made to this DBHandle's state and the outFile
* will be written and set as read-only. The caller is responsbile for disposing the outFile if
* this parameter is false.
* @param monitor progress monitor
* @throws IOException if IO error occurs
* @throws CancelledException if monitor cancels operation
*/
protected synchronized void saveAs(BufferFile outFile, Long newDatabaseId, TaskMonitor monitor)
protected synchronized void saveAs(BufferFile outFile, Long newDatabaseId,
boolean associateWithNewFile, TaskMonitor monitor)
throws IOException, CancelledException {
if (txStarted) {
@ -704,7 +709,7 @@ public class DBHandle {
endTransaction(txId, true); // saved file may be corrupt on IOException
}
bufferMgr.saveAs(outFile, true, monitor);
bufferMgr.saveAs(outFile, associateWithNewFile, monitor);
}
/**