Rafał Harabień rafalh92@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.