Debugger: Introduce common messages to engine.

Try to achieve consistency in reporting stop messages for all
engines. Report by BreakpointId if available.
This commit is contained in:
Friedemann Kleint
2010-11-17 17:16:34 +01:00
parent d1c08e68cc
commit 8888b8f532
3 changed files with 93 additions and 22 deletions

View File

@@ -336,6 +336,17 @@ protected:
protected:
DebuggerRunControl *runControl() const;
static QString msgWatchpointTriggered(BreakpointId id, int number, quint64 address);
static QString msgWatchpointTriggered(BreakpointId id, int number, quint64 address,
const QString &threadId);
static QString msgBreakpointTriggered(BreakpointId id, int number, const QString &threadId);
static QString msgStopped(const QString &reason = QString());
static QString msgStoppedBySignal(const QString &meaning, const QString &name);
static QString msgStoppedByException(const QString &description, const QString &threadId);
static QString msgInterrupted();
void showStoppedBySignalMessageBox(QString meaning, QString name);
void showStoppedByExceptionMessageBox(const QString &description);
private:
// wrapper engine needs access to state of its subengines
friend class QmlCppEngine;