This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Executable's debug format


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]