From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13839 invoked by alias); 14 Nov 2004 05:30:36 -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 13820 invoked from network); 14 Nov 2004 05:30:32 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 14 Nov 2004 05:30:32 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iAE5UQfe023226 for ; Sun, 14 Nov 2004 00:30:32 -0500 Received: from opsy.redhat.com (vpn50-17.rdu.redhat.com [172.16.50.17]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iAE5UQr23070; Sun, 14 Nov 2004 00:30:26 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 01AC42DC227; Sat, 13 Nov 2004 22:28:38 -0700 (MST) To: Daniel Jacobowitz Cc: otto.wyss@orpatec.ch, 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> <01c4c9c9$Blat.v2.2.2$913fbf20@zahav.net.il> <20041113214612.GA30909@nevyn.them.org> From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom Date: Sun, 14 Nov 2004 14:38:00 -0000 In-Reply-To: <20041113214612.GA30909@nevyn.them.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-11/txt/msg00134.txt.bz2 >>>>> "Daniel" == Daniel Jacobowitz writes: >> As of today, GDB should treat \r\n (a.k.a. CR-LF) line endings >> correctly, but not sole \r. Perhaps we should amend that code to >> treat sole CRs as well. Daniel> I'm not inclined to do this. If we're already in the presence of mixed Daniel> line endings, who's to say we aren't mixing \r, \n, and \r\n? Java defines \r, \r\n, and \n as valid line endings. I've seen actual java source files in the wild that mix two of the three (and maybe all three, I forget). What this means is that either gdb should match java :-), or the definition needs to be language-specific. Tom