| 235 | } |
| 236 | |
| 237 | void list() const |
| 238 | { |
| 239 | std::cout << "ID\tBreakpoint\n" |
| 240 | << std::endl; |
| 241 | for (auto &b : m_breakpoints) { |
| 242 | std::cout << b.id << "\t"; |
| 243 | if (b.data.index() == 2) { |
| 244 | auto func = std::get<cs::var>(b.data).const_val<cs::callable>().get_raw_data().target<cs::function_ptr>()->fptr; |
| 245 | std::cout << "line " << func->get_raw_statement()->get_line_num() << ", " << func->get_declaration() |
| 246 | << std::endl; |
| 247 | } |
| 248 | else if (b.data.index() == 1) |
| 249 | std::cout << "\"" << std::get<std::string>(b.data) << "\"(pending)" << std::endl; |
| 250 | else |
| 251 | std::cout << "line " << std::get<std::size_t>(b.data) << std::endl; |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | void reset() |
| 256 | { |
no test coverage detected