forked from qt-creator/qt-creator
Debugger: Fix triggering display of threadnames
This is a recent regression introduced by the delayed python dumper initialization. Task-number: QTCREATORBUG-8615 Change-Id: I3b5dbe5b04c68cf873e3a2597edc60fe2888b3c9 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -1841,6 +1841,14 @@ void GdbEngine::handleListFeatures(const GdbResponse &response)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GdbEngine::handleHasPython(const GdbResponse &response)
|
void GdbEngine::handleHasPython(const GdbResponse &response)
|
||||||
|
{
|
||||||
|
if (response.resultClass == GdbResultDone)
|
||||||
|
m_hasPython = true;
|
||||||
|
else
|
||||||
|
pythonDumpersFailed();
|
||||||
|
}
|
||||||
|
|
||||||
|
void GdbEngine::handlePythonSetup(const GdbResponse &response)
|
||||||
{
|
{
|
||||||
if (response.resultClass == GdbResultDone) {
|
if (response.resultClass == GdbResultDone) {
|
||||||
m_hasPython = true;
|
m_hasPython = true;
|
||||||
@@ -1863,8 +1871,6 @@ void GdbEngine::handleHasPython(const GdbResponse &response)
|
|||||||
}
|
}
|
||||||
const GdbMi hasInferiorThreadList = data.findChild("hasInferiorThreadList");
|
const GdbMi hasInferiorThreadList = data.findChild("hasInferiorThreadList");
|
||||||
m_hasInferiorThreadList = (hasInferiorThreadList.data().toInt() != 0);
|
m_hasInferiorThreadList = (hasInferiorThreadList.data().toInt() != 0);
|
||||||
} else {
|
|
||||||
pythonDumpersFailed();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4924,7 +4930,7 @@ void GdbEngine::tryLoadPythonDumpers()
|
|||||||
|
|
||||||
loadInitScript();
|
loadInitScript();
|
||||||
|
|
||||||
postCommand("bbsetup", ConsoleCommand);
|
postCommand("bbsetup", ConsoleCommand, CB(handlePythonSetup));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GdbEngine::reloadDebuggingHelpers()
|
void GdbEngine::reloadDebuggingHelpers()
|
||||||
|
|||||||
@@ -391,6 +391,7 @@ protected:
|
|||||||
void handleShowVersion(const GdbResponse &response);
|
void handleShowVersion(const GdbResponse &response);
|
||||||
void handleListFeatures(const GdbResponse &response);
|
void handleListFeatures(const GdbResponse &response);
|
||||||
void handleHasPython(const GdbResponse &response);
|
void handleHasPython(const GdbResponse &response);
|
||||||
|
void handlePythonSetup(const GdbResponse &response);
|
||||||
|
|
||||||
int m_gdbVersion; // 6.8.0 is 60800
|
int m_gdbVersion; // 6.8.0 is 60800
|
||||||
int m_gdbBuildVersion; // MAC only?
|
int m_gdbBuildVersion; // MAC only?
|
||||||
|
|||||||
Reference in New Issue
Block a user