GP-0 Correction to GP-5619 regression

This commit is contained in:
ghidra1 2025-05-19 12:39:32 -04:00
parent e13838d177
commit 749fdbb556

View file

@ -938,7 +938,7 @@ public class InstructionDB extends CodeUnitDB implements Instruction, Instructio
FlowType myFlowType = getFlowType(); // getFlowType will validate FlowType myFlowType = getFlowType(); // getFlowType will validate
if (myFlowType.hasFallthrough()) { if (myFlowType.hasFallthrough()) {
try { try {
return getAddress().addNoWrap(proto.getFallThroughOffset(this)); return address.addNoWrap(getDefaultFallThroughOffset());
} }
catch (AddressOverflowException e) { catch (AddressOverflowException e) {
// ignore // ignore
@ -950,7 +950,7 @@ public class InstructionDB extends CodeUnitDB implements Instruction, Instructio
@Override @Override
public int getDefaultFallThroughOffset() { public int getDefaultFallThroughOffset() {
if (proto.getDelaySlotByteCount() <= 0) { if (proto.getDelaySlotByteCount() <= 0) {
return getLength(); return proto.getLength();
} }
lock.acquire(); lock.acquire();
try { try {