aboutsummaryrefslogtreecommitdiff
path: root/gdb/exec.c
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2000-06-11 16:07:51 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2000-06-11 16:07:51 +0000
commitcfc3008e2f4770597b83cda2add4deed57663fe4 (patch)
treec132276f54d57d0e63a55c807a53175e066ee6aa /gdb/exec.c
parent7c5c87c02d07c87381c0314fbc364f9e2de4dad3 (diff)
downloadgdb-cfc3008e2f4770597b83cda2add4deed57663fe4.zip
gdb-cfc3008e2f4770597b83cda2add4deed57663fe4.tar.gz
gdb-cfc3008e2f4770597b83cda2add4deed57663fe4.tar.bz2
* exec.c (exec_file_attach): Add .exe extension when __CYGWIN__.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r--gdb/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/exec.c b/gdb/exec.c
index 76d4928..f99cad9 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);