This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [eliz@is.elta.co.il: DOSish filenames and CRLF source files]
- To: dj@delorie.com, eliz@is.elta.co.il
- Subject: Re: [eliz@is.elta.co.il: DOSish filenames and CRLF source files]
- From: Stan Shebs <shebs@cygnus.com>
- Date: Thu, 12 Aug 1999 18:08:41 -0700
- CC: gdb-patches@sourceware.cygnus.com
Date: Sun, 27 Jun 1999 18:51:28 +0300 (IDT)
From: Eli Zaretskii <eliz@is.elta.co.il>
The following patches solve some problems with DOS/Windows file names and
with source files which have CRLF EOLs:
Thanks much, the patches seem reasonable and so I've installed them into
the repository.
Stan
1999-06-26 Eli Zaretskii <eliz@is.elta.co.il>
* source.c (mod_path) [_WIN32 || __DJGPP__]: Don't remove trailing
slash from "d:/". Don't overstep the beginning of name.
[_WIN32 || __MSDOS__]: Convert "d:" to "d:.", otherwise appending
a slash changes its meaning.
(openp): Use SLASH_P, not equality with SLASH_CHAR.
(print_source_lines_base) [CRLF_SOURCE_FILES]: Skip \r only before
a \n.
(forward_search_command) [CRLF_SOURCE_FILES]: Remove \r at the end
of all lines.
(reverse_search_command) [CRLF_SOURCE_FILES]: Likewise.