Ghidra is a software reverse engineering (SRE) framework
GP-2533: Remove nosections from gdb manager's listModules (closes #4583)
Dan4f5f99384dff
diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/main/java/agent/gdb/manager/impl/GdbInferiorImpl.java b/Ghidra/Debug/Debugger-agent-gdb/src/main/java/agent/gdb/manager/impl/GdbInferiorImpl.javaindex 9897409a9d..c9460a7852 100644--- a/Ghidra/Debug/Debugger-agent-gdb/src/main/java/agent/gdb/manager/impl/GdbInferiorImpl.java+++ b/Ghidra/Debug/Debugger-agent-gdb/src/main/java/agent/gdb/manager/impl/GdbInferiorImpl.java@@ -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 versionCompletableFuture<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));