Valgrind: Compile fix with Heob

Change-Id: I4d58280a13643f0afff5a9ed2b0aae7bc40e551b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
hjk
2019-03-13 13:58:05 +01:00
parent d0c052d23a
commit 7b15dc35eb

View File

@@ -1509,8 +1509,9 @@ void HeobData::processFinished()
DWORD didread; DWORD didread;
if (GetOverlappedResult(m_errorPipe, &m_ov, &didread, TRUE) && didread == sizeof(m_data)) { if (GetOverlappedResult(m_errorPipe, &m_ov, &didread, TRUE) && didread == sizeof(m_data)) {
if (m_data[0] >= HEOB_PID_ATTACH) { if (m_data[0] >= HEOB_PID_ATTACH) {
m_runControl = new RunControl(nullptr, ProjectExplorer::Constants::DEBUG_RUN_MODE); m_runControl = new RunControl(ProjectExplorer::Constants::DEBUG_RUN_MODE);
auto debugger = new DebuggerRunTool(m_runControl, m_kit); m_runControl->setKit(m_kit);
auto debugger = new DebuggerRunTool(m_runControl);
debugger->setAttachPid(ProcessHandle(m_data[1])); debugger->setAttachPid(ProcessHandle(m_data[1]));
debugger->setRunControlName(tr("Process %1").arg(m_data[1])); debugger->setRunControlName(tr("Process %1").arg(m_data[1]));
debugger->setInferiorDevice(DeviceKitAspect::device(m_kit)); debugger->setInferiorDevice(DeviceKitAspect::device(m_kit));