| 234 | |
| 235 | |
| 236 | BNDebugThread* BNDebuggerGetThreads(BNDebuggerController* controller, size_t* size) |
| 237 | { |
| 238 | std::vector<DebugThread> threads = controller->object->GetAllThreads(); |
| 239 | |
| 240 | *size = threads.size(); |
| 241 | BNDebugThread* results = new BNDebugThread[threads.size()]; |
| 242 | |
| 243 | for (size_t i = 0; i < threads.size(); i++) |
| 244 | { |
| 245 | results[i].m_tid = threads[i].m_tid; |
| 246 | results[i].m_rip = threads[i].m_rip; |
| 247 | results[i].m_isFrozen = threads[i].m_isFrozen; |
| 248 | } |
| 249 | |
| 250 | return results; |
| 251 | } |
| 252 | |
| 253 | |
| 254 | void BNDebuggerFreeThreads(BNDebugThread* threads, size_t count) |
no test coverage detected