Make PrintFrameLocation a private static method of the MIProtocol class
authorIgor Kulaychuk <i.kulaychuk@samsung.com>
Wed, 17 Jan 2018 23:12:43 +0000 (02:12 +0300)
committerIgor Kulaychuk <i.kulaychuk@samsung.com>
Wed, 17 Jan 2018 23:12:43 +0000 (02:12 +0300)
src/debug/netcoredbg/commands.cpp
src/debug/netcoredbg/debugger.h

index 82281446b7ab2cbfb45e96c33dca43575cc75152..11fbfd743b4e9701544f32303bd5121b85743266 100644 (file)
@@ -263,7 +263,7 @@ static std::string AddrToString(uint64_t addr)
     return ss.str();
 }
 
-HRESULT PrintFrameLocation(const StackFrame &stackFrame, std::string &output)
+HRESULT MIProtocol::PrintFrameLocation(const StackFrame &stackFrame, std::string &output)
 {
     HRESULT Status;
 
index 9cf9b6600743431c45b663d19930d22445d55bf7..563c48f458d452453b9c0adc0a1a09eb1dca79b4 100644 (file)
@@ -262,6 +262,8 @@ private:
 
     void Cleanup();
 
+    static HRESULT DisableAllSteppers(ICorDebugProcess *pProcess);
+
     HRESULT SetupStep(ICorDebugThread *pThread, StepType stepType);
 
     HRESULT GetStackVariables(uint64_t frameId, ICorDebugThread *pThread, ICorDebugFrame *pFrame, int start, int count, std::vector<Variable> &variables);
@@ -370,8 +372,5 @@ private:
     HRESULT ListChildren(int threadId, int level, int childStart, int childEnd, const std::string &varName, int print_values, std::string &output);
     HRESULT SetBreakpoint(const std::string &filename, int linenum, Breakpoint &breakpoints);
     void DeleteBreakpoints(const std::unordered_set<uint32_t> &ids);
+    static HRESULT PrintFrameLocation(const StackFrame &stackFrame, std::string &output);
 };
-
-HRESULT DisableAllSteppers(ICorDebugProcess *pProcess);
-
-HRESULT PrintFrameLocation(const StackFrame &stackFrame, std::string &output);