Merge remote-tracking branch 'origin/patch'

This commit is contained in:
Ryan Kurtz 2024-08-01 06:15:24 -04:00
commit 4265ac01e1
2 changed files with 6 additions and 2 deletions

View File

@ -1021,8 +1021,9 @@ public class DebuggerRegistersProvider extends ComponentProviderAdapter
if (regs == null && register.getAddressSpace().isRegisterSpace()) {
return false;
}
AddressRange range =
current.getPlatform().getConventionalRegisterRange(regs.getAddressSpace(), register);
AddressRange range = current.getPlatform()
.getConventionalRegisterRange(regs == null ? null : regs.getAddressSpace(),
register);
return viewKnown.contains(range.getMinAddress(), range.getMaxAddress());
}

View File

@ -38,6 +38,9 @@ public abstract class ByteCache {
if (!valid || start == null) {
return false;
}
if (start.getAddressSpace() != address.getAddressSpace()) {
return false;
}
long offset = address.subtract(start);
return Long.compareUnsigned(offset + length, len) < 0;
}