Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Eli Zaretskii" <eliz@gnu.org>
To: tromey@redhat.com
Cc: drow@false.org, otto.wyss@orpatec.ch, gdb@sources.redhat.com
Subject: Re: GDB doesn't show the correct line
Date: Sun, 14 Nov 2004 21:43:00 -0000	[thread overview]
Message-ID: <01c4ca89$Blat.v2.2.2$e9842b60@zahav.net.il> (raw)
In-Reply-To: <m3pt2hyp6h.fsf@localhost.localdomain> (message from Tom Tromey on 13 Nov 2004 22:28:38 -0700)

> Cc: otto.wyss@orpatec.ch, gdb@sources.redhat.com
> From: Tom Tromey <tromey@redhat.com>
> Date: 13 Nov 2004 22:28:38 -0700
> 
> 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 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?

This is important for GDB because we need to count lines exactly like
the compiler does.  If we support sole \r even in mixed EOL-format
files, then it is not clear what to do with the \r\n case: is it a
single DOS-style line or one Mac-style and one Unix-style line?


  reply	other threads:[~2004-11-14 20:41 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-20 19:24 Otto Wyss
2004-06-20 20:29 ` Daniel Jacobowitz
2004-06-21 17:56   ` Otto Wyss
2004-06-21 17:59     ` Daniel Jacobowitz
2004-06-21 18:15       ` Otto Wyss
2004-06-21 19:41         ` Daniel Jacobowitz
2004-11-13 20:50         ` Daniel Jacobowitz
2004-11-13 20:55           ` Otto Wyss
2004-11-13 21:43             ` Daniel Jacobowitz
2004-11-14  4:36               ` Otto Wyss
2004-11-13 21:46           ` Eli Zaretskii
2004-11-13 21:59             ` Daniel Jacobowitz
2004-11-14  5:30               ` Eli Zaretskii
2004-11-14 14:38               ` Tom Tromey
2004-11-14 21:43                 ` Eli Zaretskii [this message]
2004-11-14 22:29                   ` Andreas Schwab
2004-11-14 22:39                     ` Eli Zaretskii
2004-11-15  4:41                       ` Andreas Schwab
2004-11-15 16:06                         ` Eli Zaretskii
2004-11-14 23:37                   ` Felix Lee
2004-11-15  4:45                     ` Eli Zaretskii
2004-06-23 11:54   ` Tarjei Knapstad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='01c4ca89$Blat.v2.2.2$e9842b60@zahav.net.il' \
    --to=eliz@gnu.org \
    --cc=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=otto.wyss@orpatec.ch \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox