MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / try_addr2line

Function try_addr2line

src/debug.cpp:181–189  ·  view source on GitHub ↗

* Try to run addr2line for the given executable and address. */

Source from the content-addressed store, hash-verified

179 * Try to run addr2line for the given executable and address.
180 */
181std::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.

Callers 1

locate_source_fileFunction · 0.85

Calls 2

read_outputFunction · 0.85
strip_until_dotsFunction · 0.85

Tested by

no test coverage detected