Replies: 1 comment
-
Hi, yes. The library relies on debug symbols to provide both symbol info and line info, the need to use -g is documented in the README. Gcc is likely showing the function names by looking them up in the binary's symbol table or dynamic symbol table. It would be possible for cpptrace to do this as well, however, there have been other aspects of the library to prioritize. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
My experiments with cpptrace seem to indicate that you don't get function names in the stacktrace unless the program is compiled with -g. Is that right? When I use gdb on a program compiled without -g I can still breakpoint on named function entry and the stacktrace does include the function name.
If this is a limitation where does it come from? cpptrace? Or maybe libdwarf? Is it documented anywhere?
Beta Was this translation helpful? Give feedback.
All reactions