Debugger: Simplify "debug last command"

Let the engine decide what to do. Less magic parsing, less code,
and survives cleaning the log view.

Change-Id: Ic94f27899d7986fb5ce3d24bb2edce8e6faf899c
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-01-04 01:34:51 +01:00
parent 63c2656d55
commit 32aeb579bb
7 changed files with 28 additions and 27 deletions

View File

@@ -931,7 +931,6 @@ public slots:
void aboutToUnloadSession();
void aboutToSaveSession();
void executeDebuggerCommand(const QString &command, DebuggerLanguages languages);
void coreShutdown();
#ifdef WITH_TESTS
@@ -2449,14 +2448,6 @@ void DebuggerPluginPrivate::aboutToSaveSession()
m_breakHandler->saveSessionData();
}
void DebuggerPluginPrivate::executeDebuggerCommand(const QString &command, DebuggerLanguages languages)
{
if (currentEngine()->acceptsDebuggerCommands())
currentEngine()->executeDebuggerCommand(command, languages);
else
showStatusMessage(tr("User commands are not accepted in the current state."));
}
void DebuggerPluginPrivate::showStatusMessage(const QString &msg0, int timeout)
{
showMessage(msg0, LogStatus);