mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
Merge remote-tracking branch 'origin/GP-5216_ghidra1_BSimApplySignature'
(Closes #7310)
This commit is contained in:
commit
87666d830b
5 changed files with 40 additions and 41 deletions
|
@ -4144,10 +4144,9 @@ abstract public class DataTypeManagerDB implements DataTypeManager {
|
|||
if (restrictive &&
|
||||
GenericCallingConvention
|
||||
.getGenericCallingConvention(name) == GenericCallingConvention.unknown &&
|
||||
!getKnownCallingConventionNames().contains(name) &&
|
||||
getCallingConvention(name) == null) {
|
||||
!getKnownCallingConventionNames().contains(name)) {
|
||||
|
||||
throw new InvalidInputException("Invalid calling convention name: " + name);
|
||||
throw new InvalidInputException("Unknown calling convention name: " + name);
|
||||
}
|
||||
|
||||
return callingConventionAdapter.getCallingConventionId(name,
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
@ -188,17 +188,9 @@ public class FunctionDefinitionDataType extends GenericDataType implements Funct
|
|||
}
|
||||
|
||||
if (GenericCallingConvention
|
||||
.getGenericCallingConvention(conventionName) != GenericCallingConvention.unknown) {
|
||||
ProgramArchitecture arch = dataMgr != null ? dataMgr.getProgramArchitecture() : null;
|
||||
if (arch != null) {
|
||||
CompilerSpec compilerSpec = arch.getCompilerSpec();
|
||||
PrototypeModel callingConvention =
|
||||
compilerSpec.getCallingConvention(conventionName);
|
||||
if (callingConvention == null) {
|
||||
throw new InvalidInputException(
|
||||
"Invalid calling convention name: " + conventionName);
|
||||
}
|
||||
}
|
||||
.getGenericCallingConvention(conventionName) == GenericCallingConvention.unknown &&
|
||||
!dataMgr.getKnownCallingConventionNames().contains(name)) {
|
||||
throw new InvalidInputException("Unknown calling convention name: " + conventionName);
|
||||
}
|
||||
|
||||
this.callingConventionName = conventionName;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue