Ghidra is a software reverse engineering (SRE) framework
Merge branch 'GP-2308_1633_ghidra1_FunctionDefinitionCallingConventions' (Closes #4537, Closes #4898, Closes #3723, Closes #3267)
ghidra12cdaebf0c350
diff --cc Ghidra/Features/Base/data/pcodetest/EmuTesting.gdtindex bcc5b355a1,bcc5b355a1..c7657a7215Binary files differdiff --cc Ghidra/Features/Base/data/typeinfo/generic/generic_clib.gdtindex b5399bdd0c,b73d2c577e..16a28c3c27Binary files differdiff --cc Ghidra/Features/Base/data/typeinfo/win32/windows_vs12_32.gdtindex c34d8e0b13,fee722402f..2b77f5cca9Binary files differdiff --cc Ghidra/Features/Base/data/typeinfo/win32/windows_vs12_64.gdtindex 5ed3b70894,2f3299bd85..be58ee9d23Binary files differdiff --cc Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/archive/ProjectArchive.javaindex d7f8940c5e,5afcf4ecb4..4558918945--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/archive/ProjectArchive.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/archive/ProjectArchive.java@@@ -68,25 -67,10 +68,29 @@@ public class ProjectArchive implements}@Override+ public int hashCode() {+ return originalDomainFile.getFileID().hashCode();+ }++ @Override+ public boolean equals(Object obj) {+ if (this == obj) {+ return true;+ }+ if (obj == null) {+ return false;+ }+ if (getClass() != obj.getClass()) {+ return false;+ }+ ProjectArchive other = (ProjectArchive) obj;+ return Objects.equals(originalDomainFile.getFileID(), other.originalDomainFile.getFileID());+ }++ public boolean hasExclusiveAccess() {+ return dataTypeArchive.hasExclusiveAccess();+ }+@Overridepublic boolean isModifiable() {DomainFile domainFile = getDomainObject().getDomainFile();diff --cc Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/DataTypeArchiveDB.javaindex 6648157c64,ddce23a38b..5806c3cf89--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/DataTypeArchiveDB.java+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/DataTypeArchiveDB.java@@@ -23,9 -23,8 +23,7 @@@ import ghidra.framework.Applicationimport ghidra.framework.data.DomainObjectAdapterDB;import ghidra.framework.model.*;import ghidra.framework.options.Options;- import ghidra.program.database.data.ProjectDataTypeManager;--import ghidra.program.model.data.DataTypeManager;--import ghidra.program.model.data.PointerDataType;++import ghidra.program.model.data.*;import ghidra.program.model.listing.DataTypeArchive;import ghidra.program.model.listing.Program;import ghidra.program.util.*;@@@ -43,12 -41,12 +40,19 @@@ public class DataTypeArchiveDB extends/*** DB_VERSION should be incremented any time a change is made to the overall* database schema associated with any of the managers.-- * 18-Sep-2008 - version 1 - added fields for synchronizing program data types with project archives.++ * 18-Sep-2008 - version 1 - Added fields for synchronizing program data types with project archives.* 03-Dec-2009 - version 2 - Added source archive updating (consolidating windows.gdt, clib.gdt, ntddk.gdt)* 14-Nov-2019 - version 3 - Corrected fixed length indexing implementation causing change* in index table low-level storage for newly created tables.++ * 20-Apr-2023 - version 4 - Added architecture support and string-based function calling++ * convention specification.++ *++ * NOTE: In reality version is based entirely on the underlying {@link StandAloneDataTypeManager}++ * implementation and its ability to detect and manage versioning concerns. Due to the need to++ * always support opening in a read-only fashion we are unable to impose a forced upgrade++ * requirement.*/-- static final int DB_VERSION = 3;++ static final int DB_VERSION = 4;/*** UPGRADE_REQUIRED_BEFORE_VERSION should be changed to DB_VERSION any time the