Add missing initialisation of ManagedDebugger fields
authorAndrey Okoshkin <a.okoshkin@samsung.com>
Fri, 2 Feb 2018 11:59:22 +0000 (14:59 +0300)
committerAndrey Okoshkin <a.okoshkin@samsung.com>
Fri, 2 Feb 2018 11:59:22 +0000 (14:59 +0300)
* `m_lastStoppedThreadId` is set to 1
* `m_protocol` is set to nullptr

src/debug/netcoredbg/manageddebugger.cpp

index 06b6a98c11c4d8e4e8a780d8357af362328ad888..642f54939e04bfb6ab0cdfe1cc9bd55c8dca3fd2 100644 (file)
@@ -625,11 +625,13 @@ public:
 
 ManagedDebugger::ManagedDebugger() :
     m_processAttachedState(ProcessUnattached),
+    m_lastStoppedThreadId(-1),
     m_startMethod(StartNone),
     m_stopAtEntry(false),
     m_evaluator(m_modules),
     m_breakpoints(m_modules),
     m_variables(m_evaluator),
+    m_protocol(nullptr),
     m_managedCallback(new ManagedCallback(*this)),
     m_pDebug(nullptr),
     m_pProcess(nullptr),