* Try to run addr2line for the given executable and address. */
| 179 | * Try to run addr2line for the given executable and address. |
| 180 | */ |
| 181 | std::string try_addr2line(std::string executable, std::string address, |
| 182 | std::string flags = "") |
| 183 | { |
| 184 | std::string command = |
| 185 | "addr2line " + flags + " -e " + executable + " " + address; |
| 186 | auto location = read_output(command); |
| 187 | |
| 188 | return strip_until_dots(location); |
| 189 | } |
| 190 | |
| 191 | /** |
| 192 | * Check whether the addr2line returned a valid position. |
no test coverage detected