Fix DAC thread context flags (#42744)
authorMike McLaughlin <mikem@microsoft.com>
Sat, 26 Sep 2020 02:20:55 +0000 (19:20 -0700)
committerGitHub <noreply@github.com>
Sat, 26 Sep 2020 02:20:55 +0000 (19:20 -0700)
commitcd4cc97e4c099f637061afe2b6c546483ffd3073
tree4f1e4cebdcaf0214e9a6b7a6d3a842984993d3b8
parent66e52a08fd9ddf52b54b1ee96877206dbfa3b572
Fix DAC thread context flags (#42744)

Fix DAC thread context flags

The CONTEXT_* flags doesn't have the proper architecture specific bit set for the cross-OS/cross-arch DAC/DBI.  This causes the thread contexts not to be copied correctly because of the way CORDbgCopyThreadContext (in coreclr\src\debug\shared\arm64\ primitives.cpp) masks/checks the context flags.

Fix x86 build: missing DT_CONTEXT_ALL
src/coreclr/src/debug/daccess/dacdbiimpl.cpp
src/coreclr/src/debug/daccess/reimpl.cpp
src/coreclr/src/debug/inc/dbgtargetcontext.h