From: Igor Kulaychuk Date: Wed, 30 May 2018 21:32:53 +0000 (+0300) Subject: Fix uninitialized frame address X-Git-Tag: submit/tizen/20180620.071641~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c5af4c77cab600da0a68905ffbb4db32633f8f2;p=sdk%2Ftools%2Fnetcoredbg.git Fix uninitialized frame address --- diff --git a/src/debug/netcoredbg/frames.cpp b/src/debug/netcoredbg/frames.cpp index 0480795..f86a46c 100644 --- a/src/debug/netcoredbg/frames.cpp +++ b/src/debug/netcoredbg/frames.cpp @@ -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; diff --git a/src/debug/netcoredbg/protocol.h b/src/debug/netcoredbg/protocol.h index 300dc07..611d323 100644 --- a/src/debug/netcoredbg/protocol.h +++ b/src/debug/netcoredbg/protocol.h @@ -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; }