From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17227 invoked by alias); 14 Nov 2004 22:39:52 -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 17206 invoked from network); 14 Nov 2004 22:39:48 -0000 Received: from unknown (HELO sire.mail.pas.earthlink.net) (207.217.120.182) by sourceware.org with SMTP; 14 Nov 2004 22:39:48 -0000 Received: from ip216-26-76-19.dsl.du.teleport.com ([216.26.76.19] helo=stray.canids) by sire.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1CTT1j-0004xj-00; Sun, 14 Nov 2004 14:39:20 -0800 Received: from stray.canids (localhost.localdomain [127.0.0.1]) by stray.canids (Postfix) with ESMTP id EBEDA4DCFA0; Sun, 14 Nov 2004 14:39:18 -0800 (PST) From: Felix Lee To: Eli Zaretskii Cc: tromey@redhat.com, drow@false.org, 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> <01c4ca89$Blat.v2.2.2$e9842b60@zahav.net.il> In-Reply-To: <01c4ca89$Blat.v2.2.2$e9842b60@zahav.net.il> on Sun, 14 Nov 2004 22:37:32 +0200 from "Eli Zaretskii" Date: Sun, 14 Nov 2004 23:37:00 -0000 Message-Id: <20041114223918.EBEDA4DCFA0@stray.canids> X-SW-Source: 2004-11/txt/msg00140.txt.bz2 "Eli Zaretskii" : > What does Java do when it sees \r\n -- does that count as one line or > two? (I assume there are some utilities in the JDK that number > lines.) What does the Java compiler do in that case wrt line numbers? "\r\n" is one line, "\r" is one line, "\n" is one line. "\n\r" is two lines, "\r\r" is two lines, "\r\r\n" is two lines, "\r\n\r" is two lines, etc. http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#231571 --