This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB doesn't show the correct line
"Eli Zaretskii" <eliz@gnu.org>:
> 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
--