This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Executable's debug format
- From: Daniel Jacobowitz <drow at false dot org>
- To: Ian Lance Taylor <ian at wasabisystems dot com>
- Cc: Bob Rossi <bob at brasko dot net>, gdb at sources dot redhat dot com
- Date: Sun, 15 Feb 2004 22:32:25 -0500
- Subject: Re: Executable's debug format
- References: <20040213005432.GA4476@white> <m34qtvr89l.fsf@gossamer.airs.com>
On Thu, Feb 12, 2004 at 10:03:02PM -0500, Ian Lance Taylor wrote:
> > Or is it more complicated? Can a single executable be composed of object
> > files which each have there debugging info in a different format?
>
> Yes, that is possible, though very unusual.
It happens pretty frequently on fairly-but-not-excessively recent
GNU/Linux systems. Some system library will be built against crt*
objects built before GCC's default changed to -gstabs+ and then user
code will use a more recent GCC that prefers -gdwarf-2. In fact, GDB
has had some interesting bugs guessing the address ranges of psymtabs
in such cases.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer