forked from qt-creator/qt-creator
Debugger: Fix uninitialized variable
This has caused GDB not to be started in remote scenarios. Change-Id: I09351e10018cc4052bd80130f2e56ec94ff14965 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -59,7 +59,7 @@ namespace Internal {
|
|||||||
///////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
GdbRemoteServerEngine::GdbRemoteServerEngine(const DebuggerStartParameters &startParameters)
|
GdbRemoteServerEngine::GdbRemoteServerEngine(const DebuggerStartParameters &startParameters)
|
||||||
: GdbEngine(startParameters)
|
: GdbEngine(startParameters), m_startAttempted(false)
|
||||||
{
|
{
|
||||||
if (Utils::HostOsInfo::isWindowsHost())
|
if (Utils::HostOsInfo::isWindowsHost())
|
||||||
m_gdbProc->setUseCtrlCStub(startParameters.useCtrlCStub); // This is only set for QNX/BlackBerry
|
m_gdbProc->setUseCtrlCStub(startParameters.useCtrlCStub); // This is only set for QNX/BlackBerry
|
||||||
@@ -483,7 +483,7 @@ void GdbRemoteServerEngine::notifyEngineRemoteServerRunning
|
|||||||
void GdbRemoteServerEngine::notifyEngineRemoteSetupFinished(const RemoteSetupResult &result)
|
void GdbRemoteServerEngine::notifyEngineRemoteSetupFinished(const RemoteSetupResult &result)
|
||||||
{
|
{
|
||||||
QTC_ASSERT(state() == EngineSetupRequested, qDebug() << state());
|
QTC_ASSERT(state() == EngineSetupRequested, qDebug() << state());
|
||||||
DebuggerEngine::notifyEngineRemoteSetupFinished(result);
|
GdbEngine::notifyEngineRemoteSetupFinished(result);
|
||||||
|
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
if (!m_startAttempted)
|
if (!m_startAttempted)
|
||||||
|
|||||||
Reference in New Issue
Block a user