| 156 | } |
| 157 | |
| 158 | void WinDbgMemoryProvider::initInterfaces() |
| 159 | { |
| 160 | #ifdef _WIN32 |
| 161 | if (!m_client) return; |
| 162 | |
| 163 | HRESULT hr; |
| 164 | hr = m_client->QueryInterface(IID_IDebugDataSpaces, (void**)&m_dataSpaces); |
| 165 | qDebug() << "[WinDbg] IDebugDataSpaces hr=" << Qt::hex << (unsigned long)hr |
| 166 | << "ptr=" << (void*)m_dataSpaces; |
| 167 | |
| 168 | hr = m_client->QueryInterface(IID_IDebugControl, (void**)&m_control); |
| 169 | qDebug() << "[WinDbg] IDebugControl hr=" << Qt::hex << (unsigned long)hr |
| 170 | << "ptr=" << (void*)m_control; |
| 171 | |
| 172 | hr = m_client->QueryInterface(IID_IDebugSymbols, (void**)&m_symbols); |
| 173 | qDebug() << "[WinDbg] IDebugSymbols hr=" << Qt::hex << (unsigned long)hr |
| 174 | << "ptr=" << (void*)m_symbols; |
| 175 | |
| 176 | if (!m_dataSpaces) { |
| 177 | qWarning() << "[WinDbg] No IDebugDataSpaces — cleaning up"; |
| 178 | cleanup(); |
| 179 | } |
| 180 | #endif |
| 181 | } |
| 182 | |
| 183 | void WinDbgMemoryProvider::querySessionInfo() |
| 184 | { |
nothing calls this directly
no outgoing calls
no test coverage detected