mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP3903 corrected address input for add memory block dialog to include
all overlay spaces.
This commit is contained in:
@@ -544,8 +544,7 @@ class AddBlockDialog extends DialogComponentProvider implements ChangeListener {
|
||||
addrField = new AddressInput();
|
||||
addrField.setName("Start Addr");
|
||||
addrFactory = model.getProgram().getAddressFactory();
|
||||
addrField.setAddressFactory(addrFactory,
|
||||
AddressInput.INCLUDE_OTHER_AND_LOADED_MEMORY_SPACES);
|
||||
addrField.setAddressFactory(addrFactory, AddressInput.INCLUDE_ALL_MEMORY_SPACES);
|
||||
addrField.addChangeListener(ev -> addrChanged());
|
||||
return addrField;
|
||||
}
|
||||
|
||||
@@ -183,12 +183,12 @@ public class AddressInput extends JPanel implements FocusableEditor {
|
||||
};
|
||||
|
||||
/**
|
||||
* Address Space predicate which include all loaded memory spaces plus the
|
||||
* {@link AddressSpace#OTHER_SPACE}. See {@link AddressSpace#isLoadedMemorySpace()}.
|
||||
* Address Space predicate which includes all memory spaces, including the
|
||||
* {@link AddressSpace#OTHER_SPACE} and all overlay spaces.
|
||||
* Intended for use with {@link #setAddressFactory(AddressFactory, Predicate)}.
|
||||
*/
|
||||
public final static Predicate<AddressSpace> INCLUDE_OTHER_AND_LOADED_MEMORY_SPACES = (s) -> {
|
||||
return s.isLoadedMemorySpace() || s.equals(AddressSpace.OTHER_SPACE);
|
||||
public final static Predicate<AddressSpace> INCLUDE_ALL_MEMORY_SPACES = (s) -> {
|
||||
return s.isMemorySpace();
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user