mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-08-28 13:30:21 +00:00
GP-2533: Remove nosections from gdb manager's listModules (closes #4583)
This commit is contained in:
parent
d4a3e091f6
commit
4f5f99384d
|
@ -245,11 +245,11 @@ public class GdbInferiorImpl implements GdbInferior {
|
|||
// "nosections" is an unlikely section name. Goal is to exclude section lines.
|
||||
// TODO: Would be nice to save this switch, or better, choose at start based on version
|
||||
CompletableFuture<String> future =
|
||||
consoleCapture("maintenance info sections ALLOBJ nosections",
|
||||
consoleCapture("maintenance info sections ALLOBJ",
|
||||
CompletesWithRunning.CANNOT);
|
||||
return future.thenCompose(output -> {
|
||||
if (output.split("\n").length <= 1) {
|
||||
return consoleCapture("maintenance info sections -all-objects nosections")
|
||||
return consoleCapture("maintenance info sections -all-objects")
|
||||
.thenApply(out2 -> parseModuleNames(out2, true));
|
||||
}
|
||||
return CompletableFuture.completedFuture(parseModuleNames(output, false));
|
||||
|
|
Loading…
Reference in a new issue