mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-890: Added dialog for adding mappings and fixing various db/ui issues re/ length.
This commit is contained in:
parent
bd2ac52c9b
commit
e6fd14f88c
13 changed files with 967 additions and 111 deletions
|
@ -76,7 +76,7 @@ public class DBTraceStaticMappingManager implements TraceStaticMappingManager, D
|
|||
public DBTraceStaticMapping add(AddressRange range, Range<Long> lifespan, URL toProgramURL,
|
||||
String toAddress)
|
||||
throws TraceConflictedMappingException {
|
||||
if (lifespan.lowerBoundType() != BoundType.CLOSED) {
|
||||
if (lifespan.hasLowerBound() && lifespan.lowerBoundType() != BoundType.CLOSED) {
|
||||
throw new IllegalArgumentException("Lower bound must be closed");
|
||||
}
|
||||
try (LockHold hold = LockHold.lock(lock.writeLock())) {
|
||||
|
|
|
@ -63,7 +63,7 @@ public interface TraceStaticMapping {
|
|||
/**
|
||||
* Get the length of the mapping, i.e., the length of the range
|
||||
*
|
||||
* @return the length
|
||||
* @return the length, where 0 indicates {@code 1 << 64}
|
||||
*/
|
||||
long getLength();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue