Debugger: Handle core shutdown, prompt user to terminate debugging.

Add a corelistener and trigger on shutdown. Notify about critical
states.
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
Friedemann Kleint
2009-10-26 18:05:11 +01:00
parent a3580ab576
commit 9dc11c5d73
3 changed files with 60 additions and 3 deletions

View File

@@ -180,7 +180,7 @@ using namespace Debugger::Internal;
static const QString tooltipIName = "tooltip";
static const char *stateName(int s)
const char *DebuggerManager::stateName(int s)
{
#define SN(x) case x: return #x;
switch (s) {
@@ -1766,7 +1766,7 @@ void DebuggerManager::ensureLogVisible()
QDebug operator<<(QDebug d, DebuggerState state)
{
return d << stateName(state) << '(' << int(state) << ')';
return d << DebuggerManager::stateName(state) << '(' << int(state) << ')';
}
//////////////////////////////////////////////////////////////////////