From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by sourceware.org (Postfix) with ESMTPS id 89D033858D35 for ; Wed, 4 Jan 2023 15:21:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 89D033858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f43.google.com with SMTP id c65-20020a1c3544000000b003cfffd00fc0so29776404wma.1 for ; Wed, 04 Jan 2023 07:21:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ldpiwSJZY2DFMxmUdtes49lc2iP9UOjzcWz0ksbIBN8=; b=mssSywx2frEjtK0r62z6uwm2+prm+ZLlNaxY/lL4C3jx60JkR+VbJ0a0UCQs2RDn8T uX7jf08+f/ZH3Ys/u1MTmVH8N/obCIawPofoPTXEp7KseeSF3eqUOoSCeWD9IeMfgmIB eAvOhzTN/sUktnkzNftQyI5ZpZrjOsaJIEGQlJP9ZP9Jawvid1xfUZmU3hMSSPu9bF4I wZ1EoZHSovaxocWJQxZCOqyAljpwyOnaf+YTm25tRUynONy98EcpgttCpqZT210GdiyG RI+RurJtCVKDFB+pJ1YpNUVfsCICDRo0eMv2txamZgHVE68ny3ah5A9FD6EFgzvgsLp/ 708w== X-Gm-Message-State: AFqh2kqb2xh4KyFfLyWCNHF7HM+Db3TF0MgkYC8jUlxR4tazKODlb6om /lH6d3Q+EVQJADLGtQYaZxU= X-Google-Smtp-Source: AMrXdXuCmi2SOUWNDQWD+E+c3mpKWm+8MyP7Uu+9XmqIQEE/W2XyOzBThST2ZkOWdgElekln250XJA== X-Received: by 2002:a05:600c:1c9d:b0:3d1:f3eb:c718 with SMTP id k29-20020a05600c1c9d00b003d1f3ebc718mr42305339wms.19.1672845697531; Wed, 04 Jan 2023 07:21:37 -0800 (PST) Received: from ?IPv6:2001:8a0:f922:5f00:d19d:b4e2:5444:fd27? ([2001:8a0:f922:5f00:d19d:b4e2:5444:fd27]) by smtp.gmail.com with ESMTPSA id t184-20020a1c46c1000000b003b4a699ce8esm51005920wma.6.2023.01.04.07.21.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Jan 2023 07:21:37 -0800 (PST) Subject: Re: testsuite under wine To: jcb62281@gmail.com, Eric Pouech Cc: Jacek Caban , fortran@gcc.gnu.org, NightStrike , DejaGnu mailing list References: <639FE88D.7090408@gmail.com> <7cb45ab2-cc6e-c502-5592-51ffabcbc6f8@codeweavers.com> <63A3DA04.4060804@gmail.com> <0bfd557c-aa07-dac5-86f4-104e71593212@orange.fr> <63A525CE.4070408@gmail.com> From: Pedro Alves Message-ID: <5f45ce5a-35d2-7960-c179-7efea3031fc5@palves.net> Date: Wed, 4 Jan 2023 15:21:35 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <63A525CE.4070408@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2022-12-23 3:51 a.m., Jacob Bachmeyer wrote: > it will not work when someone decides they want to test MinGW GDB using Wine. This has been on my wish list for years. Unfortunately, I can't even get plain cross-compiled MinGW GDB working properly on a Linux/Bash terminal, as I can't get it (I guess readline) to recognize/accept lines of input. E.g., on Ubuntu 22.04, with system Wine ('wine-6.0.3 (Ubuntu 6.0.3~repack-1)') : $ $ wine ./gdb.exe ... This GDB was configured as "x86_64-w64-mingw32". ... (gdb) foobar << a new line is printed << more << C-j is the same ^CQuit << ctrl-c works (gdb) ^Z [2]+ Stopped wine ./gdb.exe $ killall gdb.exe ( I've tried this occasionally in the past decade, always with the same result. ) If someone knows a workaround for this, I'd be curious to learn about it. :-) Last time I tried, GDBserver worked OK under Wine, and I could connect ("(gdb) target remote ...") a linux-hosted GDB built with cross Windows debugging support to that GDBserver and debug fine. So the Windows debug API seemed to work well enough under Wine, which seemed quite promising. It's just the native Windows GDB (and the Windows readline port, I guess) that doesn't seem to accept/recognize newlines for some reason. I figure that once we're past that hurdle, testing MinGW GDB under Wine under linux-hosted DejaGnu would become possible... Pedro Alves