dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: testsuite under wine


From: Eric Pouech
Subject: Re: testsuite under wine
Date: Wed, 4 Jan 2023 16:45:37 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0

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 <http://gnu.org/licenses/gpl.html>
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:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

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=<optimized out>, argv=<optimized out>) 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=<optimized out>, argv=<optimized out>) 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]$





reply via email to

[Prev in Thread] Current Thread [Next in Thread]