From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18060 invoked by alias); 6 Apr 2011 22:58:22 -0000 Received: (qmail 18042 invoked by uid 22791); 6 Apr 2011 22:58:21 -0000 X-SWARE-Spam-Status: No, hits=1.4 required=5.0 tests=AWL,BAYES_50,MSGID_MULTIPLE_AT,RCVD_IN_PSBL,TW_CP X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.153) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Apr 2011 22:58:17 +0000 Received: from md1.u-strasbg.fr (md1.u-strasbg.fr [IPv6:2001:660:2402::186]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id p36MwExv074683 for ; Thu, 7 Apr 2011 00:58:15 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms1.u-strasbg.fr [130.79.204.10]) by md1.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id p36MwEMP063107 for ; Thu, 7 Apr 2011 00:58:14 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from E6510Muller (lec67-4-82-230-53-140.fbx.proxad.net [82.230.53.140]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id p36MwCJB052480 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Thu, 7 Apr 2011 00:58:14 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: Subject: [RFA 2/2] Remove old Cygwin1.5 support Date: Wed, 06 Apr 2011 22:58:00 -0000 Message-ID: <005101cbf4ae$1dca5fc0$595f1f40$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-04/txt/msg00100.txt.bz2 Second part of the patch, This part updates gdbserver/win32-low.c to use the new cygwin_conv_path and cygwin_conv_path_list functions in order to avoid build failure due to deprecated warning. Christopher, is this patch acceptable as is? Pierre Muller. 2011-04-07 Pierre Muller Remove support for old Cygwin 1.5 versions. * win32-low.c (win32_create_inferior): Use new cygwin_path_list function to avoid warning. (win32_add_one_solib): Use cygwin_conv_path function to avoid warning. diff --git a/gdb/gdbserver/win32-low.c b/gdb/gdbserver/win32-low.c index b47081b..9cdd1b4 100644 --- a/gdb/gdbserver/win32-low.c +++ b/gdb/gdbserver/win32-low.c @@ -536,13 +536,15 @@ win32_create_inferior (char *program, char **program_args) path_ptr = getenv ("PATH"); if (path_ptr) { + int len = cygwin_conv_path_list (CCP_POSIX_TO_WIN_A, path_ptr, NULL, 0); orig_path = alloca (strlen (path_ptr) + 1); - new_path = alloca (cygwin_posix_to_win32_path_list_buf_size (path_ptr)); + new_path = alloca (len); strcpy (orig_path, path_ptr); - cygwin_posix_to_win32_path_list (path_ptr, new_path); + cygwin_conv_path_list (CCP_POSIX_TO_WIN_A, path_ptr, new_path, len); setenv ("PATH", new_path, 1); - } - cygwin_conv_to_win32_path (program, real_path); + } + cygwin_conv_path (CCP_POSIX_TO_WIN_A, program, real_path, + MAXPATHLEN); program = real_path; #endif @@ -925,7 +927,7 @@ win32_add_one_solib (const char *name, CORE_ADDR load_addr) #endif #ifdef __CYGWIN__ - cygwin_conv_to_posix_path (buf, buf2); + cygwin_conv_path (CCP_WIN_A_TO_POSIX, buf, buf2, sizeof (buf2)); #else strcpy (buf2, buf); #endif