forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.8'
Conflicts: src/plugins/debugger/debuggeritem.cpp tests/unit/unittest/unittest.pro Change-Id: Id2e4e9c2bc87b2556d7c2845aea3fe2fa11b630b
This commit is contained in:
@@ -488,7 +488,7 @@ public:
|
||||
QAction m_breakAction{tr("Toggle Breakpoint")};
|
||||
QAction m_resetAction{tr("Restart Debugging")};
|
||||
OptionalAction m_operateByInstructionAction{tr("Operate by Instruction")};
|
||||
QAction m_recordForReverseOperationAction{tr("Record information to allpow reversal of Direction")};
|
||||
QAction m_recordForReverseOperationAction{tr("Record Information to Allow Reversal of Direction")};
|
||||
OptionalAction m_operateInReverseDirectionAction{tr("Reverse Direction")};
|
||||
OptionalAction m_snapshotAction{tr("Take Snapshot of Process State")};
|
||||
|
||||
@@ -526,7 +526,7 @@ void DebuggerEnginePrivate::setupViews()
|
||||
m_operateByInstructionAction.setIcon(Debugger::Icons::SINGLE_INSTRUCTION_MODE.icon());
|
||||
m_operateByInstructionAction.setCheckable(true);
|
||||
m_operateByInstructionAction.setChecked(false);
|
||||
m_operateByInstructionAction.setToolTip("<p>" + tr("This switches the debugger to instruction-wise "
|
||||
m_operateByInstructionAction.setToolTip("<p>" + tr("Switches the debugger to instruction-wise "
|
||||
"operation mode. In this mode, stepping operates on single "
|
||||
"instructions and the source location view also shows the "
|
||||
"disassembled instructions."));
|
||||
@@ -684,18 +684,18 @@ void DebuggerEnginePrivate::setupViews()
|
||||
connect(&m_abortAction, &QAction::triggered,
|
||||
m_engine, &DebuggerEngine::abortDebugger);
|
||||
|
||||
m_resetAction.setToolTip(tr("Restart the debugging session."));
|
||||
m_resetAction.setToolTip(tr("Restarts the debugging session."));
|
||||
m_resetAction.setIcon(Icons::RESTART_TOOLBAR.icon());
|
||||
connect(&m_resetAction, &QAction::triggered,
|
||||
m_engine, &DebuggerEngine::handleReset);
|
||||
|
||||
m_stepOverAction.setIcon(Icons::STEP_OVER_TOOLBAR.icon());
|
||||
connect(&m_stepOverAction, &QAction::triggered,
|
||||
m_engine, &DebuggerEngine::handleExecNext);
|
||||
m_engine, &DebuggerEngine::handleExecStepOver);
|
||||
|
||||
m_stepIntoAction.setIcon(Icons::STEP_INTO_TOOLBAR.icon());
|
||||
connect(&m_stepIntoAction, &QAction::triggered,
|
||||
m_engine, &DebuggerEngine::handleExecStep);
|
||||
m_engine, &DebuggerEngine::handleExecStepIn);
|
||||
|
||||
m_stepOutAction.setIcon(Icons::STEP_OUT_TOOLBAR.icon());
|
||||
connect(&m_stepOutAction, &QAction::triggered,
|
||||
@@ -1111,7 +1111,7 @@ void DebuggerEngine::notifyEngineSetupFailed()
|
||||
QTC_ASSERT(state() == EngineSetupRequested, qDebug() << this << state());
|
||||
setState(EngineSetupFailed);
|
||||
if (d->m_isPrimaryEngine) {
|
||||
showMessage(tr("Debugging has failed"), NormalMessageFormat);
|
||||
showMessage(tr("Debugging has failed."), NormalMessageFormat);
|
||||
d->m_progress.setProgressValue(900);
|
||||
d->m_progress.reportCanceled();
|
||||
d->m_progress.reportFinished();
|
||||
@@ -1472,7 +1472,7 @@ void DebuggerEnginePrivate::updateReverseActions()
|
||||
m_operateInReverseDirectionAction.setVisible(canReverse);
|
||||
m_operateInReverseDirectionAction.setEnabled(canReverse && stopped && doesRecord);
|
||||
m_operateInReverseDirectionAction.setIcon(Icons::DIRECTION_BACKWARD.icon());
|
||||
m_operateInReverseDirectionAction.setText(DebuggerEngine::tr("Operate in reverse direction"));
|
||||
m_operateInReverseDirectionAction.setText(DebuggerEngine::tr("Operate in Reverse Direction"));
|
||||
}
|
||||
|
||||
void DebuggerEnginePrivate::cleanupViews()
|
||||
@@ -1787,16 +1787,16 @@ DebuggerToolTipManager *DebuggerEngine::toolTipManager()
|
||||
return &d->m_toolTipManager;
|
||||
}
|
||||
|
||||
bool DebuggerEngine::debuggerActionsEnabled() const
|
||||
{
|
||||
return debuggerActionsEnabledHelper(d->m_state);
|
||||
}
|
||||
|
||||
bool DebuggerEngine::operatesByInstruction() const
|
||||
{
|
||||
return d->m_operateByInstructionAction.isChecked();
|
||||
}
|
||||
|
||||
bool DebuggerEngine::debuggerActionsEnabled() const
|
||||
{
|
||||
return debuggerActionsEnabledHelper(d->m_state);
|
||||
}
|
||||
|
||||
void DebuggerEngine::operateByInstructionTriggered(bool on)
|
||||
{
|
||||
// Go to source only if we have the file.
|
||||
@@ -2212,7 +2212,7 @@ void DebuggerEngine::updateLocalsView(const GdbMi &all)
|
||||
static int count = 0;
|
||||
showMessage(QString("<Rebuild Watchmodel %1 @ %2 >")
|
||||
.arg(++count).arg(LogWindow::logTimeStamp()), LogMiscInput);
|
||||
showMessage(tr("Finished retrieving data"), 400, StatusBar);
|
||||
showMessage(tr("Finished retrieving data."), 400, StatusBar);
|
||||
|
||||
d->m_toolTipManager.updateToolTips();
|
||||
|
||||
@@ -2291,32 +2291,16 @@ void DebuggerEngine::handleReset()
|
||||
resetInferior();
|
||||
}
|
||||
|
||||
void DebuggerEngine::handleExecStep()
|
||||
void DebuggerEngine::handleExecStepIn()
|
||||
{
|
||||
if (state() == DebuggerNotReady) {
|
||||
DebuggerRunTool::setBreakOnMainNextTime();
|
||||
ProjectExplorerPlugin::runStartupProject(ProjectExplorer::Constants::DEBUG_RUN_MODE);
|
||||
} else {
|
||||
resetLocation();
|
||||
if (operatesByInstruction())
|
||||
executeStepI();
|
||||
else
|
||||
executeStep();
|
||||
}
|
||||
resetLocation();
|
||||
executeStepIn(operatesByInstruction());
|
||||
}
|
||||
|
||||
void DebuggerEngine::handleExecNext()
|
||||
void DebuggerEngine::handleExecStepOver()
|
||||
{
|
||||
if (state() == DebuggerNotReady) {
|
||||
DebuggerRunTool::setBreakOnMainNextTime();
|
||||
ProjectExplorerPlugin::runStartupProject(ProjectExplorer::Constants::DEBUG_RUN_MODE);
|
||||
} else {
|
||||
resetLocation();
|
||||
if (operatesByInstruction())
|
||||
executeNextI();
|
||||
else
|
||||
executeNext();
|
||||
}
|
||||
resetLocation();
|
||||
executeStepOver(operatesByInstruction());
|
||||
}
|
||||
|
||||
void DebuggerEngine::handleExecStepOut()
|
||||
|
||||
Reference in New Issue
Block a user