Fix uninitialized frame address
authorIgor Kulaychuk <i.kulaychuk@samsung.com>
Wed, 30 May 2018 21:32:53 +0000 (00:32 +0300)
committerIgor Kulaychuk <i.kulaychuk@samsung.com>
Wed, 30 May 2018 21:32:53 +0000 (00:32 +0300)
src/debug/netcoredbg/frames.cpp
src/debug/netcoredbg/protocol.h

index 0480795..f86a46c 100644 (file)
@@ -93,6 +93,8 @@ HRESULT ManagedDebugger::GetFrameLocation(ICorDebugFrame *pFrame, int threadId,
     stackFrame.clrAddr.ilOffset = ilOffset;
     stackFrame.clrAddr.nativeOffset = nOffset;
 
+    stackFrame.addr = FrameAddr(pFrame);
+
     TypePrinter::GetMethodName(pFrame, stackFrame.name);
 
     return stackFrame.source.IsNull() ? S_FALSE : S_OK;
index 300dc07..611d323 100644 (file)
@@ -63,7 +63,7 @@ struct StackFrame
         id |= level;
     }
 
-    StackFrame(uint64_t id) : id(id), line(0), column(0), endLine(0), endColumn(0) {}
+    StackFrame(uint64_t id) : id(id), line(0), column(0), endLine(0), endColumn(0), addr(0) {}
 
     uint32_t GetLevel() const { return id & 0xFFFFFFFFul; }
     int GetThreadId() const { return id >> 32; }