forked from qt-creator/qt-creator
Debugger: Merge two variants to set detach-on-fork
Change-Id: I8459110b2729c0ee8c797f184c018fdb44cafe45 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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"});
|
||||
}
|
||||
|
Reference in New Issue
Block a user