From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by sourceware.org (Postfix) with ESMTPS id C23AE3AA88E3 for ; Fri, 13 Mar 2020 18:15:17 +0000 (GMT) Received: by mail-oi1-x242.google.com with SMTP id g6so10394482oiy.1 for ; Fri, 13 Mar 2020 11:15:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=R2T9oZErZE4MNZkkLz/X5ko4ssDY2f4aRphLLdUcVoc=; b=ojUaCgta8Eb6m6k6Z5ZrjpHdgbb8lRA8J/R+DXHIS4xvuCXcvoPzR8u6qdg0GcoCjw YWa6P6UVxe0ry3Y57TAYnyED2z9lBBrUNyqf4FmpCvtxxksykeQus7jidUzKFpZRPwpP Wxpc6xBJqjJ6BYK30gxHKtYyB45tPR9XkV7ZO/at26ZxJDxiKZICSMxBtGYQCrYVtFYj iCOZ0gdzBsVPfJf48uR2cXxHHXlEBnf83nw0Yyod+S023kEnU7DZ0J3e1SviOnuLQ8vX 8VoDjPGTPR7jcJi8+SShxwmnhca5d+fT/3b1pb8yJAPpwFf8AQJrYwDuexc/S7dLztHW pZaA== X-Gm-Message-State: ANhLgQ3m2QwLlVcZL6T0LwodE4c/RmwgKJCBqgABM21tPypO4JprOv56 Sqr5wk6f7q761KlR0cWb12eRax7rK8YAszLfLUwZwebE X-Google-Smtp-Source: ADFU+vtpTdq1RyZOyvW4s8mH3WmAiZMvG0qeu8POkGYlAwozqcCQY8dc7QoQISWLnpK9hcgiqI3/CmcyKdE5wqNRHR4= X-Received: by 2002:aca:4a86:: with SMTP id x128mr8248455oia.29.1584123316796; Fri, 13 Mar 2020 11:15:16 -0700 (PDT) MIME-Version: 1.0 References: <20200311183212.28601-1-simon.marchi@efficios.com> <835zfaaelk.fsf@gnu.org> <88902aeb-5643-073b-a2de-f9a051bae6d8@simark.ca> <87imj8dtns.fsf@tromey.com> In-Reply-To: <87imj8dtns.fsf@tromey.com> From: Christian Biesinger Date: Fri, 13 Mar 2020 13:14:40 -0500 Message-ID: Subject: Re: [PATCH] testsuite: use cygpath to convert from Unix to Windows paths To: Tom Tromey Cc: Simon Marchi , Simon Marchi , gdb-patches Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-15.7 required=5.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Mar 2020 18:15:18 -0000 On Fri, Mar 13, 2020 at 12:57 PM Tom Tromey wrote: > > >> Right, using "pwd -W" was exactly what I wanted to propose for this > >> purpose. > > Simon> Ok thanks, I have pushed this version of the patch. > > Today I tried something a little weird -- I did a mingw build on Linux > and then tried to run the gdb.server test cases. Linux can run mingw > executables via wine... > > However this fails with: > > ERROR: tcl error sourcing /home/tromey/gdb/build-mingw/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.server/wrapper.exp. > ERROR: sh: line 0: pwd: -W: invalid option > pwd: usage: pwd [-LP] > > My site.exp says: > > set host_triplet i686-w64-mingw32 > set target_alias i686-w64-mingw32 > set target_triplet i686-w64-mingw32 > set build_triplet x86_64-pc-linux-gnu > > I guess maybe this is expected, I wonder if there's a clean way to fix > the problem. Christian suggested maybe we could have a wine board file > to work around it. Or maybe we could check build_triplet? I'm not sure > if that would be incorrect in some case. Just to clarify... it is not enough to just bypass that call for wine. You do need to convert the linux path to a Windows path, or GDB will not be able to load the file. So since that translation has to be done by the testrunner, it has to be aware that you're running GDB under Wine. It looks like by default, Z:\ is mapped to /, so /foo should become Z:/foo. Christian