forked from qt-creator/qt-creator
debugger: compile fix, minor cleanup
This commit is contained in:
@@ -95,11 +95,6 @@ using namespace TextEditor;
|
|||||||
|
|
||||||
namespace Debugger {
|
namespace Debugger {
|
||||||
|
|
||||||
QString toolChainName(const DebuggerStartParameters &sp)
|
|
||||||
{
|
|
||||||
return ToolChain::toolChainName(ProjectExplorer::ToolChainType(sp.toolChainType));
|
|
||||||
}
|
|
||||||
|
|
||||||
QDebug operator<<(QDebug d, DebuggerState state)
|
QDebug operator<<(QDebug d, DebuggerState state)
|
||||||
{
|
{
|
||||||
//return d << DebuggerEngine::stateName(state) << '(' << int(state) << ')';
|
//return d << DebuggerEngine::stateName(state) << '(' << int(state) << ')';
|
||||||
|
@@ -128,8 +128,6 @@ private:
|
|||||||
quint64 m_address;
|
quint64 m_address;
|
||||||
};
|
};
|
||||||
|
|
||||||
QString toolChainName(const DebuggerStartParameters &sp);
|
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|
||||||
|
|
||||||
|
@@ -94,6 +94,7 @@
|
|||||||
#include <projectexplorer/projectexplorerconstants.h>
|
#include <projectexplorer/projectexplorerconstants.h>
|
||||||
#include <projectexplorer/session.h>
|
#include <projectexplorer/session.h>
|
||||||
#include <projectexplorer/target.h>
|
#include <projectexplorer/target.h>
|
||||||
|
#include <projectexplorer/toolchain.h>
|
||||||
#include <projectexplorer/toolchaintype.h>
|
#include <projectexplorer/toolchaintype.h>
|
||||||
|
|
||||||
#include <qt4projectmanager/qt4projectmanagerconstants.h>
|
#include <qt4projectmanager/qt4projectmanagerconstants.h>
|
||||||
@@ -2499,9 +2500,10 @@ void DebuggerPluginPrivate::createNewDock(QWidget *widget)
|
|||||||
void DebuggerPluginPrivate::runControlStarted(DebuggerEngine *engine)
|
void DebuggerPluginPrivate::runControlStarted(DebuggerEngine *engine)
|
||||||
{
|
{
|
||||||
activateDebugMode();
|
activateDebugMode();
|
||||||
|
QString toolChainName = ToolChain::toolChainName(
|
||||||
|
ProjectExplorer::ToolChainType((engine->startParameters().toolChainType)));
|
||||||
const QString message = tr("Starting debugger '%1' for tool chain '%2'...")
|
const QString message = tr("Starting debugger '%1' for tool chain '%2'...")
|
||||||
.arg(engine->objectName())
|
.arg(engine->objectName()).arg(toolChainName);
|
||||||
.arg(toolChainName(engine->startParameters()));
|
|
||||||
showMessage(message, StatusBar);
|
showMessage(message, StatusBar);
|
||||||
showMessage(m_debuggerSettings->dump(), LogDebug);
|
showMessage(m_debuggerSettings->dump(), LogDebug);
|
||||||
m_snapshotHandler->appendSnapshot(engine);
|
m_snapshotHandler->appendSnapshot(engine);
|
||||||
|
@@ -372,8 +372,10 @@ DebuggerRunControl::DebuggerRunControl(RunConfiguration *runConfiguration,
|
|||||||
// Could not find anything suitable.
|
// Could not find anything suitable.
|
||||||
debuggingFinished();
|
debuggingFinished();
|
||||||
// Create Message box with possibility to go to settings.
|
// Create Message box with possibility to go to settings.
|
||||||
|
QString toolChainName =
|
||||||
|
ToolChain::toolChainName(ProjectExplorer::ToolChainType(sp.toolChainType));
|
||||||
const QString msg = tr("Cannot debug '%1' (tool chain: '%2'): %3")
|
const QString msg = tr("Cannot debug '%1' (tool chain: '%2'): %3")
|
||||||
.arg(sp.executable, toolChainName(sp), d->m_errorMessage);
|
.arg(sp.executable, toolChainName, d->m_errorMessage);
|
||||||
Core::ICore::instance()->showWarningWithOptions(tr("Warning"),
|
Core::ICore::instance()->showWarningWithOptions(tr("Warning"),
|
||||||
msg, QString(), QLatin1String(Constants::DEBUGGER_SETTINGS_CATEGORY),
|
msg, QString(), QLatin1String(Constants::DEBUGGER_SETTINGS_CATEGORY),
|
||||||
d->m_settingsIdHint);
|
d->m_settingsIdHint);
|
||||||
|
Reference in New Issue
Block a user