forked from qt-creator/qt-creator
Debugger: remove can interrupt check
We are now able to interrupt via Ctrl+C so we do not necessarily need a local inferior with a pid. Change-Id: I31997c5d2885b748699756908ef46686798ccafa Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -611,9 +611,6 @@ void CdbEngine::shutdownInferior()
|
|||||||
if (commandsPending()) {
|
if (commandsPending()) {
|
||||||
showMessage("Cannot shut down inferior due to pending commands.", LogWarning);
|
showMessage("Cannot shut down inferior due to pending commands.", LogWarning);
|
||||||
STATE_DEBUG(state(), Q_FUNC_INFO, __LINE__, "notifyInferiorShutdownFinished")
|
STATE_DEBUG(state(), Q_FUNC_INFO, __LINE__, "notifyInferiorShutdownFinished")
|
||||||
} else if (!canInterruptInferior()) {
|
|
||||||
showMessage("Cannot interrupt the inferior.", LogWarning);
|
|
||||||
STATE_DEBUG(state(), Q_FUNC_INFO, __LINE__, "notifyInferiorShutdownFinished")
|
|
||||||
} else {
|
} else {
|
||||||
interruptInferior(); // Calls us again
|
interruptInferior(); // Calls us again
|
||||||
return;
|
return;
|
||||||
@@ -758,11 +755,6 @@ void CdbEngine::doContinueInferior()
|
|||||||
runCommand({"g", NoFlags});
|
runCommand({"g", NoFlags});
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CdbEngine::canInterruptInferior() const
|
|
||||||
{
|
|
||||||
return m_effectiveStartMode != AttachToRemoteServer && inferiorPid();
|
|
||||||
}
|
|
||||||
|
|
||||||
void CdbEngine::interruptInferior()
|
void CdbEngine::interruptInferior()
|
||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
|
@@ -129,7 +129,6 @@ private:
|
|||||||
void doContinueInferior();
|
void doContinueInferior();
|
||||||
void parseOutputLine(QString line);
|
void parseOutputLine(QString line);
|
||||||
bool isCdbProcessRunning() const { return m_process.state() != QProcess::NotRunning; }
|
bool isCdbProcessRunning() const { return m_process.state() != QProcess::NotRunning; }
|
||||||
bool canInterruptInferior() const;
|
|
||||||
inline void postDisassemblerCommand(quint64 address, DisassemblerAgent *agent);
|
inline void postDisassemblerCommand(quint64 address, DisassemblerAgent *agent);
|
||||||
void postDisassemblerCommand(quint64 address, quint64 endAddress,
|
void postDisassemblerCommand(quint64 address, quint64 endAddress,
|
||||||
DisassemblerAgent *agent);
|
DisassemblerAgent *agent);
|
||||||
|
Reference in New Issue
Block a user