mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-14 09:17:57 +08:00
a5b7e504c6
In a future CL we will make use of InitializeContext2 which can produce contexts of varying sizes - this makes the existing use of a union for wow/x64 contexts no longer feasible. The context union in process_reader_win is replaced with a (moveable, copyable) helper struct which currently only knows how to allocate the replaced WOW or CONTEXT sized unions. As this field is no longer a member of the Thread struct it cannot be passed into other functions as a reference, so instead a pointer is used in these functions. Bug: 1250098 Change-Id: Ied3fe971c0073bbdafc071217e1bb0f72350bb4e Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3538668 Commit-Queue: Alex Gough <ajgo@chromium.org> Reviewed-by: Joshua Peraza <jperaza@chromium.org>