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