forked from qt-creator/qt-creator
Valgrind: Extend and use new DebuggerRunTool interface
Change-Id: I5e015a484e67175be12d538e7f814d61001ad7bb Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -193,6 +193,16 @@ void DebuggerRunTool::setCloseMode(DebuggerCloseMode closeMode)
|
||||
m_runParameters.closeMode = closeMode;
|
||||
}
|
||||
|
||||
void DebuggerRunTool::setAttachPid(ProcessHandle pid)
|
||||
{
|
||||
m_runParameters.attachPID = pid;
|
||||
}
|
||||
|
||||
void DebuggerRunTool::setSysRoot(const QString &sysRoot)
|
||||
{
|
||||
m_runParameters.sysRoot = sysRoot;
|
||||
}
|
||||
|
||||
void DebuggerRunTool::setSymbolFile(const QString &symbolFile)
|
||||
{
|
||||
if (symbolFile.isEmpty())
|
||||
@@ -210,6 +220,21 @@ void DebuggerRunTool::setUseExtendedRemote(bool on)
|
||||
m_runParameters.useExtendedRemote = on;
|
||||
}
|
||||
|
||||
void DebuggerRunTool::setUseContinueInsteadOfRun(bool on)
|
||||
{
|
||||
m_runParameters.useContinueInsteadOfRun = on;
|
||||
}
|
||||
|
||||
void DebuggerRunTool::setUseTargetAsync(bool on)
|
||||
{
|
||||
m_runParameters.useTargetAsync = on;
|
||||
}
|
||||
|
||||
void DebuggerRunTool::setSkipExecutableValidation(bool on)
|
||||
{
|
||||
m_runParameters.skipExecutableValidation = on;
|
||||
}
|
||||
|
||||
void DebuggerRunTool::setQmlServer(const QUrl &qmlServer)
|
||||
{
|
||||
m_runParameters.qmlServer = qmlServer;
|
||||
@@ -247,6 +272,16 @@ void DebuggerRunTool::addQmlServerInferiorCommandLineArgumentIfNeeded()
|
||||
}
|
||||
}
|
||||
|
||||
void DebuggerRunTool::addExpectedSignal(const QString &signal)
|
||||
{
|
||||
m_runParameters.expectedSignals.append(signal);
|
||||
}
|
||||
|
||||
void DebuggerRunTool::addSearchDirectory(const QString &dir)
|
||||
{
|
||||
m_runParameters.additionalSearchDirectories.append(dir);
|
||||
}
|
||||
|
||||
static QLatin1String engineTypeName(DebuggerEngineType et)
|
||||
{
|
||||
switch (et) {
|
||||
@@ -355,6 +390,11 @@ int DebuggerRunTool::portsUsedByDebugger() const
|
||||
return isCppDebugging() + isQmlDebugging();
|
||||
}
|
||||
|
||||
void DebuggerRunTool::setSolibSearchPath(const QStringList &list)
|
||||
{
|
||||
m_runParameters.solibSearchPath = list;
|
||||
}
|
||||
|
||||
void DebuggerRunTool::notifyInferiorIll()
|
||||
{
|
||||
m_engine->notifyInferiorIll();
|
||||
@@ -729,7 +769,7 @@ DebuggerEngine *DebuggerRunTool::activeEngine() const
|
||||
return m_engine ? m_engine->activeEngine() : nullptr;
|
||||
}
|
||||
|
||||
void DebuggerRunTool::appendSolibSearchPath(const QString &str)
|
||||
void DebuggerRunTool::addSolibSearchDir(const QString &str)
|
||||
{
|
||||
QString path = str;
|
||||
path.replace("%{sysroot}", m_runParameters.sysRoot);
|
||||
|
Reference in New Issue
Block a user