From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12397 invoked by alias); 13 Nov 2004 21:59:37 -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 12308 invoked from network); 13 Nov 2004 21:59:31 -0000 Received: from unknown (HELO mail.xor.ch) (212.55.210.163) by sourceware.org with SMTP; 13 Nov 2004 21:59:31 -0000 Received: from orpatec.ch (80.218.107.22) by mail.xor.ch with MERCUR Mailserver (v4.03.11 NjYtMjMxMS00NjIy) for ; Sat, 13 Nov 2004 23:05:54 +0100 Message-ID: <419683BF.6CFC7728@orpatec.ch> Date: Sun, 14 Nov 2004 04:36:00 -0000 From: Otto Wyss MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Re: GDB doesn't show the correct line References: <40D5E480.4A68163@orpatec.ch> <20040620202929.GA17216@nevyn.them.org> <40D7212F.E68A9D61@orpatec.ch> <20040621175928.GA13407@nevyn.them.org> <40D725AF.FC2AAF3A@orpatec.ch> <20041113201803.GA21320@nevyn.them.org> <41967379.F2BD27D2@orpatec.ch> <20041113205506.GA27763@nevyn.them.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-11/txt/msg00132.txt.bz2 Daniel Jacobowitz wrote: > > On Sat, Nov 13, 2004 at 09:50:00PM +0100, Otto Wyss wrote: > > > > > IMO it would be best if GDB would handle line separators equally as GCC. > > So the behaviour would be consistent an easier understandable by the user. > > I think this behavior should be removed from GCC, personally. But GCC > isn't the only compiler used by GDB; if you play this sort of game with > line endings, you're going to lose on some combination anyway. > Unfortunately we all don't live in an ideal world and have to care for some wrong situations. A good product would at least complain if it detects a situation which it can't handle correct. Therefore IMO GDB should at least give a warning if different line endings are discovered. O. Wyss -- Development of frame buffer drivers: http://linux-fbdev.sf.net Sample code snippets for wxWidgets: http://wxcode.sf.net How to build well-designed applications: http://wxguide.sf.net Desktop with a consistent look and feel: http://wyodesktop.sf.net