mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Merge remote-tracking branch 'origin/GP-2537_Dan_fixGdbDefaultMemory'
This commit is contained in:
@@ -81,12 +81,14 @@ public class GdbModelTargetProcessMemory
|
|||||||
}
|
}
|
||||||
if (size == 8) {
|
if (size == 8) {
|
||||||
// TODO: This split shouldn't be necessary.
|
// TODO: This split shouldn't be necessary.
|
||||||
BigInteger split = BigInteger.valueOf(Long.MAX_VALUE);
|
BigInteger lowEnd = BigInteger.valueOf(Long.MAX_VALUE);
|
||||||
GdbMemoryMapping lowMapping = new GdbMemoryMapping(start, split,
|
BigInteger highStart = lowEnd.add(BigInteger.ONE);
|
||||||
split.subtract(start), BigInteger.ZERO, "rwx", "defaultLow");
|
|
||||||
GdbMemoryMapping highMapping = new GdbMemoryMapping(split, end,
|
GdbMemoryMapping lowMapping = new GdbMemoryMapping(start, lowEnd,
|
||||||
end.subtract(split), BigInteger.ZERO, "rwx", "defaultHigh");
|
lowEnd.subtract(start), BigInteger.ZERO, "rwx", "defaultLow");
|
||||||
return Map.of(start, lowMapping, split, highMapping);
|
GdbMemoryMapping highMapping = new GdbMemoryMapping(highStart, end,
|
||||||
|
end.subtract(highStart), BigInteger.ZERO, "rwx", "defaultHigh");
|
||||||
|
return Map.of(start, lowMapping, highStart, highMapping);
|
||||||
}
|
}
|
||||||
throw new GdbCommandError("Unexpected address size: " + size);
|
throw new GdbCommandError("Unexpected address size: " + size);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user