mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 20:22:44 +00:00
GP-1142: Catching error and returning empty map, allowing default logic.
This commit is contained in:
parent
51de35330c
commit
ce073cd0f6
@ -106,7 +106,10 @@ public class GdbModelTargetProcessMemory
|
||||
setElements(List.of(), "Refreshed (while no process)");
|
||||
return AsyncUtils.NIL;
|
||||
}
|
||||
return inferior.listMappings().thenAccept(this::updateUsingMappings);
|
||||
return inferior.listMappings().exceptionally(ex -> {
|
||||
Msg.error(this, "Could not list regions", ex);
|
||||
return Map.of(); // empty map will be replaced with default
|
||||
}).thenAccept(this::updateUsingMappings);
|
||||
}
|
||||
|
||||
protected synchronized GdbModelTargetMemoryRegion getTargetRegion(GdbMemoryMapping mapping) {
|
||||
|
Loading…
Reference in New Issue
Block a user