https://bugs.winehq.org/show_bug.cgi?id=48626
Bug ID: 48626 Summary: Can't restart program in `--gdb` mode Product: Wine Version: 5.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winedbg Assignee: wine-bugs@winehq.org Reporter: hi-angel@yandex.ru Distribution: ---
While debugging a program, it's often useful to set a breakpoint and then restart the application. Unfortunately, `run` command in gdb mode doesn't work.
# Steps to reproduce (in terms of terminal commands)
╰─$ winedbg --gdb ping.exe 0055:0056: create process 'C:\windows\system32\ping.exe'/0x11420 @0x7fea58a84820 (0<0>) 0055:0056: create thread I @0x7fea58a84820 GNU gdb (GDB) 9.1 Copyright (C) 2020 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-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://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". 0055:0056: loads DLL C:\windows\system32\ntdll.dll @0x7bc20000 (0<0>) 0055:0056: loads DLL C:\windows\system32\kernelbase.dll @0x7b010000 (0<0>) 0055:0056: loads DLL C:\windows\system32\kernel32.dll @0x7b420000 (0<0>) 0055:0056: loads DLL C:\windows\system32\wow64cpu.dll @0x7fea58a90000 (0<0>) 0055:0056: loads DLL C:\windows\system32\ws2_32.dll @0x7fea58240000 (0<0>) 0055:0056: loads DLL C:\windows\system32\advapi32.dll @0x7fea581b0000 (0<0>) 0055:0056: loads DLL C:\windows\system32\iphlpapi.dll @0x7fea58a40000 (0<0>) 0055:0056: loads DLL C:\windows\system32\msvcrt.dll @0x7fea580d0000 (0<0>) warning: remote target does not support file transfer, attempting to access files from local filesystem. warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? 0x000000007bcd9e89 in DbgBreakPoint () from /usr/bin/../lib/wine/ntdll.dll.so gdb λ run The "remote" target does not support "run". Try "help target" or "continue".
## Expected
Gdb would ask me if I really want to restart, and then if I press Y, it would restart the app
## Actual
The error "target does not support run"