This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFC 7/9] Unify windows specifics into common/windows-hdep files
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: <gdb-patches at sourceware dot org>
- Date: Wed, 30 Mar 2011 14:05:09 +0200
- Subject: [RFC 7/9] Unify windows specifics into common/windows-hdep files
Patch that adapts nto-tdep.c source code
to new windows-hdep code.
Pierre Muller
GDB pascal language maintainer
ChangeLog entry:
2011-03-30 Pierre Muller <muller@ics.u-strasbg.fr>
* nto-tdep.c (windows-hdep.h): New include.
(nto_target): Adapt to windows-hdep code.
diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c
index 1db123d..1c564ee 100644
--- a/gdb/nto-tdep.c
+++ b/gdb/nto-tdep.c
@@ -39,6 +39,7 @@
#ifdef __CYGWIN__
#include <sys/cygwin.h>
+#include "windows-hdep.h"
#endif
#ifdef __CYGWIN__
@@ -59,9 +60,10 @@ nto_target (void)
#ifdef __CYGWIN__
static char buf[PATH_MAX];
if (p)
- cygwin_conv_to_posix_path (p, buf);
+ windows_conv_path (WINDOWS_NATIVE_A_TO_POSIX, p, buf, PATH_MAX);
else
- cygwin_conv_to_posix_path (default_nto_target, buf);
+ windows_conv_path (WINDOWS_NATIVE_A_TO_POSIX, default_nto_target, buf,
+ PATH_MAX);
return buf;
#else
return p ? p : default_nto_target;
--
1.7.4