stacktrace icon indicating copy to clipboard operation
stacktrace copied to clipboard

How could we show line number on mac OS?

Open wind2412 opened this issue 7 years ago • 3 comments

We don't have addr2line on macos. I wonder how we can get line information use our macro configuration. I used brew to install boost, and the version is 1.69.0.

After boost::stacktrace::stacktrace(), I only get this output:

 0# run() in /Users/xxx/Desktop/./bin/test
 1# main in /Users/xxx/Desktop/./bin/test

Thanks in advance :)

wind2412 avatar Jan 01 '19 11:01 wind2412

atos may help https://www.unix.com/man-page/osx/1/atos/

ivanarh avatar Jan 10 '19 20:01 ivanarh

See also #97 we get on linux too

narodnik avatar Jul 21 '20 07:07 narodnik

Hello, did anyone manage to resolve this? Address Sanitizer on Mac manages to get line numbers.

spinicist avatar Jan 11 '21 11:01 spinicist