From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.smtpout.orange.fr (smtp-24.smtpout.orange.fr [80.12.242.24]) by sourceware.org (Postfix) with ESMTPS id 06BDC3858D39 for ; Wed, 4 Jan 2023 15:45:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 06BDC3858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=orange.fr Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=orange.fr Received: from [192.168.1.5] ([90.116.254.181]) by smtp.orange.fr with ESMTP id D5xRphOBLyEjGD5xRp2UMJ; Wed, 04 Jan 2023 16:45:39 +0100 X-ME-Helo: [192.168.1.5] X-ME-Date: Wed, 04 Jan 2023 16:45:39 +0100 X-ME-IP: 90.116.254.181 Message-ID: <3b5622f7-377e-bc7d-6e4a-6c8f731ad97f@orange.fr> Date: Wed, 4 Jan 2023 16:45:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: testsuite under wine To: Pedro Alves , jcb62281@gmail.com 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> <5f45ce5a-35d2-7960-c179-7efea3031fc5@palves.net> Content-Language: en-US From: Eric Pouech In-Reply-To: <5f45ce5a-35d2-7960-c179-7efea3031fc5@palves.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,BODY_8BITS,FREEMAIL_FROM,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,KAM_SHORT,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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: Le 04/01/2023 à 16:21, Pedro Alves a écrit : > 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)') : hi they've been a couple of improvements in Wine 7.x that will help here so upgrading might be a solution (wine 8.0 is likely to be released by the end of this month...). wine 6.x tree is two year old :-( (notepad is wine's notepad) ------------------------------------------- [eric:~/work/output-wine/wine64]$ ./wine --version wine-8.0-rc2-14-g48c0a75432b [eric:~/work/output-wine/wine64]$ ./wine /usr/x86_64-w64-mingw32/sys-root/mingw/bin/gdb.exe notepad GNU gdb (GDB) 12.1 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-w64-mingw32". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at:     . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from notepad... (gdb) b WinMain Breakpoint 1 at 0x140005280: file /home/eric/work/wine/programs/notepad/main.c, line 845. (gdb) run Starting program: C:\windows\system32\notepad.exe Breakpoint 1, WinMain (hInstance=0x140000000, prev=prev@entry=0x0, cmdline=cmdline@entry=0x34a3b2 "", show=show@entry=1) at /home/eric/work/wine/programs/notepad/main.c:845 845     { (gdb) bt #0  WinMain (hInstance=0x140000000, prev=prev@entry=0x0, cmdline=cmdline@entry=0x34a3b2 "", show=show@entry=1) at /home/eric/work/wine/programs/notepad/main.c:845 #1  0x0000000140006d25 in main (argc=, argv=) at /home/eric/work/wine/dlls/msvcrt/crt_winmain.c:53 (gdb) b CreateWindowExW Breakpoint 2 at 0x216a25ee0: CreateWindowExW. (2 locations) (gdb) c Continuing. Breakpoint 2, 0x0000000216a25ee0 in CreateWindowExW () at /home/eric/work/wine/dlls/user32/win.c:443 443     } (gdb) bt #0  0x0000000216a25ee0 in CreateWindowExW () at /home/eric/work/wine/dlls/user32/win.c:443 #1  0x000000014000560a in WinMain (hInstance=0x140000000, prev=prev@entry=0x0, cmdline=cmdline@entry=0x34a3b2 "", show=show@entry=1) at /home/eric/work/wine/programs/notepad/main.c:893 #2  0x0000000140006d25 in main (argc=, argv=) at /home/eric/work/wine/dlls/msvcrt/crt_winmain.c:53 (gdb) q A debugging session is active.         Inferior 1 [process 508] will be killed. Quit anyway? (y or n) y [eric:~/work/output-wine/wine64]$