| 192 | } |
| 193 | |
| 194 | void replace_pending(const std::string &name, const cs::var &function) |
| 195 | { |
| 196 | if (m_pending.count(name) > 0) { |
| 197 | const cs::callable::function_type &target = function.const_val<cs::callable>().get_raw_data(); |
| 198 | target.target<cs::function_ptr>()->fptr->set_debugger_state(true); |
| 199 | auto key = m_pending.find(name); |
| 200 | if (key->second.second) { |
| 201 | for (auto &it : m_breakpoints) { |
| 202 | if (it.id == key->second.first) { |
| 203 | it.data.emplace<cs::var>(function); |
| 204 | key->second.second = false; |
| 205 | break; |
| 206 | } |
| 207 | } |
| 208 | } |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | void remove(std::size_t id) |
| 213 | { |
no test coverage detected