mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-1142: fix for missing 'info proc mappings'
This commit is contained in:
parent
928bc5508a
commit
91fa4d12c9
1 changed files with 8 additions and 0 deletions
|
@ -65,6 +65,14 @@ public class GdbModelTargetProcessMemory
|
|||
protected void updateUsingMappings(Map<BigInteger, GdbMemoryMapping> byStart) {
|
||||
List<GdbModelTargetMemoryRegion> regions;
|
||||
synchronized (this) {
|
||||
if (byStart.isEmpty()) {
|
||||
AddressSet addressSet = impl.getAddressFactory().getAddressSet();
|
||||
BigInteger start = addressSet.getMinAddress().getOffsetAsBigInteger();
|
||||
BigInteger end = addressSet.getMaxAddress().getOffsetAsBigInteger();
|
||||
GdbMemoryMapping mem = new GdbMemoryMapping(start, end,
|
||||
end.subtract(start), start.subtract(start), "default");
|
||||
byStart.put(start, mem);
|
||||
}
|
||||
regions =
|
||||
byStart.values().stream().map(this::getTargetRegion).collect(Collectors.toList());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue