| 189 | |
| 190 | |
| 191 | std::vector<DebugFrame> DebuggerController::GetFramesOfThread(uint32_t tid) |
| 192 | { |
| 193 | size_t count; |
| 194 | BNDebugFrame* frames = BNDebuggerGetFramesOfThread(m_object, tid, &count); |
| 195 | |
| 196 | std::vector<DebugFrame> result; |
| 197 | result.reserve(count); |
| 198 | |
| 199 | for (size_t i = 0; i < count; i++) |
| 200 | { |
| 201 | DebugFrame frame; |
| 202 | frame.m_index = frames[i].m_index; |
| 203 | frame.m_pc = frames[i].m_pc; |
| 204 | frame.m_sp = frames[i].m_sp; |
| 205 | frame.m_fp = frames[i].m_fp; |
| 206 | frame.m_functionName = frames[i].m_functionName; |
| 207 | frame.m_functionStart = frames[i].m_functionStart; |
| 208 | frame.m_module = frames[i].m_module; |
| 209 | result.push_back(frame); |
| 210 | } |
| 211 | BNDebuggerFreeFrames(frames, count); |
| 212 | |
| 213 | return result; |
| 214 | } |
| 215 | |
| 216 | |
| 217 | std::vector<DebugModule> DebuggerController::GetModules() |
nothing calls this directly
no test coverage detected