This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: When to emit C++ debug info?
- From: Chris Lattner <sabre at nondot dot org>
- To: Geoff Keating <geoffk at desire dot geoffk dot org>
- Cc: dberlin at dberlin dot org, <snyder at fnal dot gov>, <drow at mvista dot com>,<gcc at gcc dot gnu dot org>
- Date: Sun, 4 Jan 2004 02:15:59 -0600 (CST)
- Subject: Re: When to emit C++ debug info?
On Sat, 3 Jan 2004, Geoff Keating wrote:
> we decide that because 'bar' is alphabetically before 'foo',
> everything to do with 'bar' will already be output in its .o file, so
> we don't have to output any of it here (including the definition of
> 'struct x'). For C++, you would decide that vtable definitions come
> "before" everything else, so debug information gets output with the
> vtable if there is one.
This is precisely the kind of thing that caused the original problem: lack
of debug information being emitted when you just _use_ libraries. ie, you
don't recompile them, so you only have debug information for part of the
program.
-Chris
--
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/