This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/20268] g++ generates incomplete debug information for given testcase with optimization
- From: "dberlin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Mar 2005 04:49:54 -0000
- Subject: [Bug debug/20268] g++ generates incomplete debug information for given testcase with optimization
- References: <20050301211050.20268.fnf@specifixinc.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dberlin at gcc dot gnu dot org 2005-03-02 04:49 -------
Debug output for inlining, etc, isn't actually driven by the callgraph, so yes,
it can get out of sync with reality (it's not supposed to, but it does). In
particular, it is possible we are missing some inlined subroutine dies.
However, i wouldn't necessarily believe the output of addr2line either. :) It's
not perfect in how it chooses what line number/file relates to a given address,
particularly in the face of optimization.
Looking at your output, i only see a small number of things outside the scopes
that "don't belong to main".
Or am i looking at the wrong thing?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20268