`pid` is `DWORD` in Startup() and AttachToProcess() from ManagedDebugger
authorAndrey Okoshkin <a.okoshkin@samsung.com>
Mon, 5 Feb 2018 09:15:14 +0000 (12:15 +0300)
committerAndrey Okoshkin <a.okoshkin@samsung.com>
Mon, 5 Feb 2018 09:15:14 +0000 (12:15 +0300)
dbgshim API handles PID as `DWORD`.

src/debug/netcoredbg/manageddebugger.cpp
src/debug/netcoredbg/manageddebugger.h

index 642f54939e04bfb6ab0cdfe1cc9bd55c8dca3fd2..2f80a50c661f6f7659117e8023057e8a8a13c843 100644 (file)
@@ -913,7 +913,7 @@ static std::string GetCLRPath(int pid)
     return result;
 }
 
-HRESULT ManagedDebugger::Startup(IUnknown *punk, int pid)
+HRESULT ManagedDebugger::Startup(IUnknown *punk, DWORD pid)
 {
     HRESULT Status;
 
@@ -1093,7 +1093,7 @@ void ManagedDebugger::Cleanup()
     // TODO: Cleanup libcoreclr.so instance
 }
 
-HRESULT ManagedDebugger::AttachToProcess(int pid)
+HRESULT ManagedDebugger::AttachToProcess(DWORD pid)
 {
     HRESULT Status;
 
index 14ecb116799a35a9352e94495f94cdef0e201613..39af330bfeea3778a18e3563f755d1ce70d08455 100644 (file)
@@ -378,7 +378,7 @@ private:
     std::string m_clrPath;
 
     static VOID StartupCallback(IUnknown *pCordb, PVOID parameter, HRESULT hr);
-    HRESULT Startup(IUnknown *punk, int pid);
+    HRESULT Startup(IUnknown *punk, DWORD pid);
 
     void Cleanup();
 
@@ -390,7 +390,7 @@ private:
     HRESULT GetFrameLocation(ICorDebugFrame *pFrame, int threadId, uint32_t level, StackFrame &stackFrame);
 
     HRESULT RunProcess(std::string fileExec, std::vector<std::string> execArgs);
-    HRESULT AttachToProcess(int pid);
+    HRESULT AttachToProcess(DWORD pid);
     HRESULT DetachFromProcess();
     HRESULT TerminateProcess();