mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
Fixing several debugger-related tests
This commit is contained in:
parent
4bb7cfaa71
commit
c481a87ab5
19 changed files with 214 additions and 79 deletions
|
@ -26,8 +26,20 @@ import ghidra.util.database.spatial.rect.EuclideanSpace2D;
|
|||
public class TraceAddressSnapSpace implements EuclideanSpace2D<Address, Long> {
|
||||
private static final Map<AddressSpace, TraceAddressSnapSpace> SPACES = new HashMap<>();
|
||||
|
||||
/**
|
||||
* Get the trace-address-snap space for a given address space
|
||||
*
|
||||
* <p>
|
||||
* Because this synchronizes on a cache of spaces, it should only be called by space
|
||||
* constructors, never by entry constructors.
|
||||
*
|
||||
* @param space the address space
|
||||
* @return the trace-address-snap space
|
||||
*/
|
||||
public static TraceAddressSnapSpace forAddressSpace(AddressSpace space) {
|
||||
return SPACES.computeIfAbsent(space, TraceAddressSnapSpace::new);
|
||||
synchronized (SPACES) {
|
||||
return SPACES.computeIfAbsent(space, TraceAddressSnapSpace::new);
|
||||
}
|
||||
}
|
||||
|
||||
private ImmutableTraceAddressSnapRange full;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue