This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Let gdb know that cygwin is dosish
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH] Let gdb know that cygwin is dosish
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Tue, 16 Oct 2001 01:02:50 -0400
I'm not sure if this falls into my jurisdiction or not, but unless
there are objections, I'm going to make the following change.
I recently found that a bug that I'd been halfheartedly tracking
down for months was caused by the fact that some of gdb's code didn't
recognize the fact that f:/ was an absolute path under cygwin.
This patch should fix that as well as a number of other odd
incompatibilities with mixed case.
cgf
2001-10-16 Christopher Faylor <cgf@redhat.com>
* filenames.h: Add cygwin to the list of dosish style path systems.
Index: filenames.h
===================================================================
RCS file: /cvs/uberbaum/include/filenames.h,v
retrieving revision 1.1
diff -u -p -r1.1 filenames.h
--- filenames.h 2000/05/26 13:11:57 1.1
+++ filenames.h 2001/10/16 04:59:01
@@ -5,7 +5,7 @@
use forward- and back-slash in path names interchangeably, and
some of them have case-insensitive file names.
- Copyright 2000 Free Software Foundation, Inc.
+ Copyright 2000, 2001 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suit
#ifndef FILENAMES_H
#define FILENAMES_H
-#if defined(__MSDOS__) || defined(_WIN32) || defined(__OS2__)
+#if defined(__MSDOS__) || defined(_WIN32) || defined(__OS2__) || defined (__CYGWIN__)
#ifndef HAVE_DOS_BASED_FILE_SYSTEM
#define HAVE_DOS_BASED_FILE_SYSTEM 1