| 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 | { |
no test coverage detected