| 103 | } |
| 104 | |
| 105 | void StackModel::refreshData() |
| 106 | { |
| 107 | // Hopefully in the near future we can get a stack frame for |
| 108 | // each thread |
| 109 | beginResetModel(); |
| 110 | for (const auto& thread : m_cpu.GetThreadList()) |
| 111 | { |
| 112 | if (thread->Status() == ThreadStatus::THS_RUN) |
| 113 | { |
| 114 | m_stackFrames = m_cpu.StackTrace(*thread); |
| 115 | break; |
| 116 | } |
| 117 | } |
| 118 | endResetModel(); |
| 119 | } |
| 120 | |
| 121 | #include "moc_StackModel.cpp" |
no test coverage detected