From cfc3008e2f4770597b83cda2add4deed57663fe4 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 11 Jun 2000 16:07:51 +0000 Subject: [PATCH] * exec.c (exec_file_attach): Add .exe extension when __CYGWIN__. --- gdb/ChangeLog | 4 ++++ gdb/exec.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9609c3e2281..c027035f58e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Sun Jun 11 12:06:21 2000 Christopher Faylor + + * exec.c (exec_file_attach): Add .exe extension when __CYGWIN__. + Sat Jun 10 22:31:46 2000 Christopher Faylor * win32-nat.c (safe_symbol_file_add_args): Store old gdb_stderr and diff --git a/gdb/exec.c b/gdb/exec.c index 76d49286647..f99cad97b50 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -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); -- 2.30.2