From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14286 invoked by alias); 7 Apr 2006 08:18:19 -0000 Received: (qmail 14276 invoked by uid 22791); 7 Apr 2006 08:18:19 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 07 Apr 2006 08:18:18 +0000 Received: from HOME-C4E4A596F7 (IGLD-83-130-200-225.inter.net.il [83.130.200.225]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id DBF60240 (AUTH halo1); Fri, 7 Apr 2006 11:18:14 +0300 (IDT) Date: Fri, 07 Apr 2006 13:33:00 -0000 Message-Id: From: Eli Zaretskii To: gdb@sources.redhat.com In-reply-to: <20060406193155.GA1581@nevyn.them.org> (message from Daniel Jacobowitz on Thu, 6 Apr 2006 15:31:55 -0400) Subject: Re: text file formats Reply-to: Eli Zaretskii References: <20060405223122.GB11610@brasko.net> <20060405233938.GA11013@nevyn.them.org> <20060406001455.GC11610@brasko.net> <20060406011732.GA12814@nevyn.them.org> <20060406032702.GE11610@brasko.net> <20060406133829.GI11610@brasko.net> <20060406140542.GA26169@nevyn.them.org> <20060406190742.GA2769@brasko.net> <20060406193155.GA1581@nevyn.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00091.txt.bz2 > Date: Thu, 6 Apr 2006 15:31:55 -0400 > From: Daniel Jacobowitz > > Native formats are the only sort we can support reliably. > > We get line numbers from the debug information, which was produced by a > compiler - any compiler. If the file is in native format, the compiler > can be presumed to have gotten the line numbers right. If it isn't, > then they could be totally out of whack. At least with GCC and with Unix and DOS style of EOLs, there's no basis to assume that line numbers will be ``totally out of wack''. The Mac case obviously is harder, but it sounds like that style is dying anyway. > And the compiler could have been run on a different platform. GCC supports both Unix and DOS EOLs on Windows as well. So, at least for these two styles and platforms, it's possible to support line numbers reliably. > Supporting all of the possible combinations is simply impossible. All of them might be impossible, but some of them could be quite possible. Anyway, unless we have a volunteer to add this kind of support to GDB, this dispute is purely academic.