winedbg: Detect debuggee termination before first exception.
commitfdd1c1c7765a2d863975fb1ed9e310f453934ec5
authorEric Pouech <epouech@codeweavers.com>
Wed, 5 Jul 2023 17:29:04 +0000 (5 19:29 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 7 Jul 2023 10:20:23 +0000 (7 12:20 +0200)
tree5199c6e3408b99b7f25fb7d4260b072c2796ce7b
parent7ada0e223904c563d79af97922dc8301ecf030f9
winedbg: Detect debuggee termination before first exception.

When a crash in a program happens, and the debugger in launched in --auto
mode, in some cases the program terminates before the debugger has gotten
proper context on debuggee.
(Could be a watchdog in programs checking if it's debugged and terminating
itself if so).

Detect debuggee termination and still provide some information on debuggee
(threads, modules, system info). The backtrace will not be available as
no exception is gotten from debuggee.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55187
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
programs/winedbg/tgt_active.c