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

Method relocate_to_csym

sources/covscript.cpp:123–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 std::atomic_size_t global_thread_counter(0);
122
123 void exception::relocate_to_csym(const csym_info &csym)
124 {
125 if (mLine >= csym.map.size())
126 throw fatal_error("Invalid line when relocating symbols in cSYM.");
127 std::size_t relocated_line = csym.map[mLine - 1];
128 if (relocated_line >= csym.codes.size())
129 throw fatal_error("Broken cSYM file.");
130 if (relocated_line > 0) {
131 const std::string &relocated_code = csym.codes[relocated_line - 1];
132 mStr = compose_what(csym.file, relocated_line, relocated_code, mWhat);
133 }
134 else
135 mStr = compose_what_internal(csym.file, mWhat);
136 }
137
138 void process_context::cleanup_context()
139 {

Callers 1

covscript_mainFunction · 0.80

Calls 2

fatal_errorClass · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected