From e265c5403ba3bbdff939ddbffe4b6c04ea0760a2 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 15 Nov 2016 08:38:04 +0100 Subject: [PATCH] Debugger: Merge two variants to set detach-on-fork Change-Id: I8459110b2729c0ee8c797f184c018fdb44cafe45 Reviewed-by: Christian Stenger --- src/plugins/debugger/gdb/gdbengine.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 53f94c4f6b3..b9b40694789 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1687,9 +1687,6 @@ void GdbEngine::handleShowVersion(const DebuggerResponse &response) else runCommand({"set target-async off", ConsoleCommand}); - if (runParameters().multiProcess) - runCommand({"set detach-on-fork off", ConsoleCommand}); - //runCommand("set build-id-verbose 2", ConsoleCommand); } } @@ -4047,7 +4044,7 @@ void GdbEngine::startGdb(const QStringList &args) runCommand({"set auto-solib-add on", ConsoleCommand}); } - if (boolSetting(MultiInferior)) { + if (boolSetting(MultiInferior) || runParameters().multiProcess) { //runCommand("set follow-exec-mode new"); runCommand({"set detach-on-fork off"}); }