mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-27 14:40:28 +00:00
Merge remote-tracking branch 'origin/patch'
This commit is contained in:
commit
4265ac01e1
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user