| 137 | |
| 138 | |
| 139 | std::vector<DebugThread> DebuggerController::GetThreads() |
| 140 | { |
| 141 | size_t count; |
| 142 | BNDebugThread* threads = BNDebuggerGetThreads(m_object, &count); |
| 143 | |
| 144 | vector<DebugThread> result; |
| 145 | result.reserve(count); |
| 146 | for (size_t i = 0; i < count; i++) |
| 147 | { |
| 148 | DebugThread thread; |
| 149 | thread.m_rip = threads[i].m_rip; |
| 150 | thread.m_tid = threads[i].m_tid; |
| 151 | thread.m_isFrozen = threads[i].m_isFrozen; |
| 152 | result.push_back(thread); |
| 153 | } |
| 154 | BNDebuggerFreeThreads(threads, count); |
| 155 | |
| 156 | return result; |
| 157 | } |
| 158 | |
| 159 | |
| 160 | DebugThread DebuggerController::GetActiveThread() |
no test coverage detected