forked from qt-creator/qt-creator
S60: Handle TrkNotifyStopped (crash) when running.
Extract error message string from Trk, print proper message when application crashes in run mode and terminate launcher. Use same message in Debugger for consistency. Reviewed-by: Robert Loehning <robert.loehning@nokia.com>Reviewed-by: John Doe
This commit is contained in:
@@ -669,6 +669,8 @@ void S60DeviceRunControlBase::startDeployment()
|
||||
connect(m_launcher, SIGNAL(installingFinished()), this, SLOT(printInstallingFinished()));
|
||||
connect(m_launcher, SIGNAL(copyProgress(int)), this, SLOT(printCopyProgress(int)));
|
||||
connect(m_launcher, SIGNAL(stateChanged(int)), this, SLOT(slotLauncherStateChanged(int)));
|
||||
connect(m_launcher, SIGNAL(processStopped(uint,uint,uint,QString)),
|
||||
this, SLOT(processStopped(uint,uint,uint,QString)));
|
||||
|
||||
//TODO sisx destination and file path user definable
|
||||
m_launcher->setTrkServerName(m_serialPortName);
|
||||
@@ -775,6 +777,12 @@ void S60DeviceRunControlBase::reportDeployFinished()
|
||||
}
|
||||
}
|
||||
|
||||
void S60DeviceRunControlBase::processStopped(uint pc, uint pid, uint tid, const QString& reason)
|
||||
{
|
||||
emit addToOutputWindow(this, trk::Launcher::msgStopped(pid, tid, pc, reason));
|
||||
m_launcher->terminate();
|
||||
}
|
||||
|
||||
QMessageBox *S60DeviceRunControlBase::createTrkWaitingMessageBox(const QString &port, QWidget *parent)
|
||||
{
|
||||
const QString title = QCoreApplication::translate("Qt4ProjectManager::Internal::S60DeviceRunControlBase",
|
||||
|
||||
Reference in New Issue
Block a user