MCPcopy Create free account
hub / github.com/covscript/covscript / list

Method list

sources/debugger.cpp:237–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

covscript_mainFunction · 0.80

Calls 3

get_raw_statementMethod · 0.80
indexMethod · 0.45
get_line_numMethod · 0.45

Tested by

no test coverage detected