This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] Update cygwin specific code in nto-tdep.c
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: <gdb-patches at sourceware dot org>
- Date: Tue, 19 Apr 2011 14:53:38 +0200
- Subject: [RFA] Update cygwin specific code in nto-tdep.c
After removal of Cygwin 1.5 support in GDB sources,
it seems logical to replace all deprecated cygwin_conv_XXXX
functions with the new cygwin_conv_path function.
This patch does this for nto-tdep.c source.
It avoids a build failure due to a deprecated warning
if you use --enable-targets=all on cygwin host.
Is this OK?
Pierre Muller
GDB pascal language maintainer
2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
* nto-tdep.c (nto_target): Replace deprecated call to
cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
Index: nto-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/nto-tdep.c,v
retrieving revision 1.41
diff -u -p -r1.41 nto-tdep.c
--- nto-tdep.c 19 Apr 2011 11:38:40 -0000 1.41
+++ nto-tdep.c 19 Apr 2011 12:46:21 -0000
@@ -59,9 +59,9 @@ nto_target (void)
#ifdef __CYGWIN__
static char buf[PATH_MAX];
if (p)
- cygwin_conv_to_posix_path (p, buf);
+ cygwin_conv_path (CCP_WIN_A_TO_POSIX, p, buf, PATH_MAX);
else
- cygwin_conv_to_posix_path (default_nto_target, buf);
+ cygwin_conv_path (CCP_WIN_A_TO_POSIX, default_nto_target, buf,
PATH_MAX);
return buf;
#else
return p ? p : default_nto_target;