-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libbacktrace skip parameter can skip several inlined functions #60
Comments
I run libbacktrace on x86_64 all the time. I don't see any problem reading x86_64 debug info. If I change your program to pass a skip argument of 0 to |
Yes, I reproduce this.
Not entirely.
The first line here is wrong. It should reflect the frame of That the frame-skipping logic then, for skip = 1, eliminates two frames instead of one, is understandable (given that both frames show the same code address). But the original problem exists already with skip = 0. |
On Ubuntu 16.04, when I compile a program with "-g" or "-ggdb", for 32-bit mode programs, libbacktrace can infer file and line numbers. For 64-bit mode programs, this does not work.
How to reproduce: Compile this program in 64-bit mode.
backtrace-via-libbacktrace.c.gz
and
gcc is version 5.4.0. gdb does understand the debug info.
The text was updated successfully, but these errors were encountered: