Replies: 4 comments 7 replies
-
Hi, with libdl it's expected that there's no line info since it uses dynamic export information instead of debug info. Libbacktrace I don't know about, I am not sure I've ever tested that on macos. My advice would be try using -DCPPTRACE_GET_SYMBOLS_WITH_DBGHELP=On, which is the default for the library and the most well-supported back-end (and it's tested on macos fairly thoroughly). |
Beta Was this translation helpful? Give feedback.
-
How do I build on macos with DBGHELP? I thought that was windows only (and cpptrace documentation lists is as such)
|
Beta Was this translation helpful? Give feedback.
-
yeah, I tried dwarf and addr2line, but it was worse - those did not give function names; I'll see how it does on Linux, that is where I primarily need it |
Beta Was this translation helpful? Give feedback.
-
@jeremy-rifkin FWIW, here's a bit more systematic description of what we're doing. POCO-esque On linux, backtrace works fine. on mac, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having trouble getting lines and snippets displayed.
With
-DCPPTRACE_GET_SYMBOLS_WITH_LIBDL -DCPPTRACE_DEMANGLE_WITH_CXXABI -DCPPTRACE_UNWIND_WITH_LIBUNWIND
I get this (no line numbers or snippets):
I hoped
libbacktrace
would give a better output, so I changed-DCPPTRACE_GET_SYMBOLS_WITH_LIBDL
to-DCPPTRACE_GET_SYMBOLS_WITH_LIBBACKTRACE
(and linked withlibbacktrace
, of course)But sadly, no:
I'm calling
cpptrace::generate_trace().print()
andcpptrace::generate_trace().print_with_snippets()
but cant get the line numbers or snippets displayed. What am I doing wrong?Beta Was this translation helpful? Give feedback.
All reactions