mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-3127 - PDB - Override overzealous thunk detection
This commit is contained in:
parent
bdc6f56c40
commit
407fe706d8
1 changed files with 6 additions and 4 deletions
|
@ -258,10 +258,12 @@ public class FunctionSymbolApplier extends MsSymbolApplier {
|
|||
}
|
||||
|
||||
boolean succeededSetFunctionSignature = false;
|
||||
if (!function.isThunk() &&
|
||||
function.getSignatureSource().isLowerPriorityThan(SourceType.IMPORTED)) {
|
||||
succeededSetFunctionSignature = setFunctionDefinition(monitor);
|
||||
function.setNoReturn(isNonReturning);
|
||||
if (thunkSymbol == null) {
|
||||
function.setThunkedFunction(null);
|
||||
if (function.getSignatureSource().isLowerPriorityThan(SourceType.IMPORTED)) {
|
||||
succeededSetFunctionSignature = setFunctionDefinition(monitor);
|
||||
function.setNoReturn(isNonReturning);
|
||||
}
|
||||
}
|
||||
// If signature was set, then override existing primary mangled symbol with
|
||||
// the global symbol that provided this signature so that Demangler does not overwrite
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue