Merge remote-tracking branch 'origin/patch'

This commit is contained in:
ghidra1 2024-07-15 15:56:23 -04:00
commit 0857d52681
2 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,5 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View file

@ -884,10 +884,13 @@ public class InstructionDB extends CodeUnitDB implements Instruction, Instructio
private void addLengthOverrideFallthroughRef() {
if (isLengthOverridden() && !isFallThroughOverridden()) {
// length-override always uses default fall-through address
refMgr.addMemoryReference(address, getDefaultFallThrough(), RefType.FALL_THROUGH,
Address defaultFallThrough = getDefaultFallThrough();
if (defaultFallThrough != null) {
refMgr.addMemoryReference(address, defaultFallThrough, RefType.FALL_THROUGH,
SourceType.USER_DEFINED, Reference.MNEMONIC);
}
}
}
@Override
public boolean isLengthOverridden() {