forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user