From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18224 invoked by alias); 16 Feb 2004 03:32:28 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18198 invoked from network); 16 Feb 2004 03:32:27 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 16 Feb 2004 03:32:27 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1AsZUf-0007aR-6K; Sun, 15 Feb 2004 22:32:25 -0500 Date: Mon, 16 Feb 2004 03:32:00 -0000 From: Daniel Jacobowitz To: Ian Lance Taylor Cc: Bob Rossi , gdb@sources.redhat.com Subject: Re: Executable's debug format Message-ID: <20040216033225.GC2685@nevyn.them.org> Mail-Followup-To: Ian Lance Taylor , Bob Rossi , gdb@sources.redhat.com References: <20040213005432.GA4476@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2004-02/txt/msg00153.txt.bz2 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