This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] exec command should default to .exe extension under __CYGWIN__


cgf

Sun Jun 11 12:06:21 2000  Christopher Faylor <cgf@cygnus.com>

	* exec.c (exec_file_attach): Add .exe extension when __CYGWIN__.

Index: exec.c
===================================================================
RCS file: /cvs/src/src/gdb/exec.c,v
retrieving revision 1.4
diff -u -p -r1.4 exec.c
--- exec.c	2000/06/04 00:41:09	1.4
+++ exec.c	2000/06/11 16:06:23
@@ -206,7 +206,7 @@ exec_file_attach (args, from_tty)
       scratch_chan = openp (getenv ("PATH"), 1, filename,
 		   write_files ? O_RDWR | O_BINARY : O_RDONLY | O_BINARY, 0,
 			    &scratch_pathname);
-#if defined(__GO32__) || defined(_WIN32)
+#if defined(__GO32__) || defined(_WIN32) || defined(__CYGWIN__)
       if (scratch_chan < 0)
 	{
 	  char *exename = alloca (strlen (filename) + 5);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]