[PATCH] ntdll: Allow getting/setting x86_64 context of x86 processes in wine64

Alexandre Julliard julliard at winehq.org
Thu Feb 25 16:44:53 CST 2021


Rafał Harabień <rafalh92 at outlook.com> writes:

> WoW64 process has two separate contexts:
> - 32 bit context used most of the time (e.g. by application code)
> - 64 bit context used by system when it quits x86 emulation and jumps to
>   the kernel code
> A notable exception are debug registers - their state is shared. Some
> debuggers make use of that fact and sets/gets debug registers of 32 bit
> processes using 64 bit thread context.
>
> This change adds support for setting and getting debug registers using
> 64 bit thread context. Getting other registers is allowed too and will
> return values from 32 bit thread context.

Some test cases would be nice.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list