summaryrefslogtreecommitdiff
path: root/misc/buildroot/configs/gdb-6_8-cygwin-1_7.patch
diff options
context:
space:
mode:
Diffstat (limited to 'misc/buildroot/configs/gdb-6_8-cygwin-1_7.patch')
-rw-r--r--misc/buildroot/configs/gdb-6_8-cygwin-1_7.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/misc/buildroot/configs/gdb-6_8-cygwin-1_7.patch b/misc/buildroot/configs/gdb-6_8-cygwin-1_7.patch
new file mode 100644
index 000000000..93fa15b31
--- /dev/null
+++ b/misc/buildroot/configs/gdb-6_8-cygwin-1_7.patch
@@ -0,0 +1,19 @@
+--- gdb-6.8/gdb/remote-fileio.c.orig 2008-01-01 16:53:12.000000000 -0600
++++ gdb-6.8/gdb/remote-fileio.c 2011-02-12 18:00:07.390625000 -0600
+@@ -1000,12 +1000,12 @@
+ errno = EISDIR;
+ else
+ {
+- char oldfullpath[PATH_MAX + 1];
+- char newfullpath[PATH_MAX + 1];
++ char oldfullpath[PATH_MAX];
++ char newfullpath[PATH_MAX];
+ int len;
+
+- cygwin_conv_to_full_posix_path (oldpath, oldfullpath);
+- cygwin_conv_to_full_posix_path (newpath, newfullpath);
++ cygwin_conv_path (CCP_WIN_A_TO_POSIX, oldpath, oldfullpath, PATH_MAX);
++ cygwin_conv_path (CCP_WIN_A_TO_POSIX, newpath, newfullpath, PATH_MAX);
+ len = strlen (oldfullpath);
+ if (newfullpath[len] == '/'
+ && !strncmp (oldfullpath, newfullpath, len))