forked from qt-creator/qt-creator
Debugger: Protect reloadRegisters against early calls.
Check for correct state (InferiorStopped).
This commit is contained in:
@@ -1588,6 +1588,8 @@ QList<Symbol> CdbDebugEngine::moduleSymbols(const QString &moduleName)
|
|||||||
|
|
||||||
void CdbDebugEngine::reloadRegisters()
|
void CdbDebugEngine::reloadRegisters()
|
||||||
{
|
{
|
||||||
|
if (state() != InferiorStopped)
|
||||||
|
return;
|
||||||
const int intBase = 10;
|
const int intBase = 10;
|
||||||
if (debugCDB)
|
if (debugCDB)
|
||||||
qDebug() << Q_FUNC_INFO << intBase;
|
qDebug() << Q_FUNC_INFO << intBase;
|
||||||
|
@@ -2555,6 +2555,8 @@ void GdbEngine::handleStackListThreads(const GdbResponse &response)
|
|||||||
|
|
||||||
void GdbEngine::reloadRegisters()
|
void GdbEngine::reloadRegisters()
|
||||||
{
|
{
|
||||||
|
if (state() != InferiorStopped)
|
||||||
|
return;
|
||||||
if (!m_registerNamesListed) {
|
if (!m_registerNamesListed) {
|
||||||
postCommand(_("-data-list-register-names"), CB(handleRegisterListNames));
|
postCommand(_("-data-list-register-names"), CB(handleRegisterListNames));
|
||||||
m_registerNamesListed = true;
|
m_registerNamesListed = true;
|
||||||
|
Reference in New Issue
Block a user