This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: addr2line ends up off by 1 line numbers when -O0 is used
- From: Ãngel GonzÃlez <keisial at gmail dot com>
- To: Britton Kerin <britton dot kerin at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 18 Mar 2016 00:15:12 +0100
- Subject: Re: addr2line ends up off by 1 line numbers when -O0 is used
- Authentication-results: sourceware.org; auth=none
- References: <CAC4O8c9ET7xbvfYA5J1dgineV3611ZbU00yLuDCeJyvF3uWdPQ at mail dot gmail dot com> <CAC4O8c8THmnj_6Ng1Vnon5wT4geMCUn+Ybf5gJt5RM00HCKDyA at mail dot gmail dot com>
Can you provide a minimal program that calls backrace() saving it into a
file, that then -depending on the optimization level- produces the wrong
output when addr2lines is called?
Also, I think you forgot to mention your architecture.
Best regards