Skip to content
Snippets Groups Projects
Commit 49f1cd53 authored by Aurindam Jana's avatar Aurindam Jana
Browse files

Valgrind: Support both IPv4 and IPv6


Change-Id: I3e7a7f0d9264c2fccb161e5d2dcf585db4fcd013
Reviewed-by: default avatarChristiaan Janssen <christiaan.janssen@digia.com>
parent 686b63ea
No related branches found
No related tags found
No related merge requests found
......@@ -74,13 +74,13 @@ Analyzer::AnalyzerStartParameters ValgrindTool::createStartParameters(
sp.workingDirectory = rc1->workingDirectory();
sp.debuggee = rc1->executable();
sp.debuggeeArgs = rc1->commandLineArguments();
sp.connParams.host = QLatin1String("localhost");
const ProjectExplorer::IDevice::ConstPtr device =
ProjectExplorer::DeviceKitInformation::device(runConfiguration->target()->kit());
QTC_ASSERT(device->type() == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE, return sp);
QTcpServer server;
if (!server.listen(QHostAddress(sp.connParams.host)))
if (!server.listen(QHostAddress::LocalHost) || !server.listen(QHostAddress::LocalHostIPv6))
return sp;
sp.connParams.host = server.serverAddress().toString();
sp.connParams.port = server.serverPort();
sp.startMode = Analyzer::StartLocal;
} else if (RemoteLinuxRunConfiguration *rc2 =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment