On Sunday 31 May 2026 01:16:48 LIU Hao wrote:
> 在 2026-5-31 01:01, Pali Rohár 写道:
> > Maybe it is better to check it unconditionally on all archs.
> > Additional check on amd64 should not cause an issue, it should be always 
> > negative.
> > And we do not think if the #ifdef is correct and does not miss something.
> 
> Yes.
> 
> 
> > Anyway, for completeness we should for all 4 unwind flags, not just the 
> > first one:
> > EXCEPTION_UNWINDING | EXCEPTION_EXIT_UNWIND | EXCEPTION_TARGET_UNWIND | 
> > EXCEPTION_COLLIDED_UNWIND
> 
> `EXCEPTION_EXIT_UNWIND` is set with `EXCEPTION_UNWINDING`.

wine's msvcrt exception handler for both i386 and amd64 is checking also 
EXCEPTION_EXIT_UNWIND:

https://gitlab.winehq.org/wine/wine/-/blob/wine-11.10/dlls/msvcrt/except_i386.c#L677
https://gitlab.winehq.org/wine/wine/-/blob/wine-11.10/dlls/msvcrt/except.c#L1272

> As for others, I don't know: What can happen if a new exception is raised
> during unwinding? It probably needs testing.

Seems that it would be needed to check.


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to