Descriptionwin: Retrieve thread context for x64
Retrieve context and save to thread context. NtQueryInformationThread
is no longer required (right now?) because to retrieve the CONTEXT, the
thread needs to be Suspend/ResumeThread'd anyway, and the return value
of SuspendThread is the previous SuspendCount.
I haven't handle the x86 case yet -- that would ideally be via
Wow64GetThreadContext (I think) but unfortunately that's Vista+, so I'll
likely need to to a bit of fiddling to get that sorted out. (It's actually
likely going to be NtQueryInformationThread again, but one thing at a
time for now.)
R=cpu@chromium.org, rsesek@chromium.org
TBR=mark@chromium.org
BUG=crashpad:1
Committed: https://chromium.googlesource.com/crashpad/crashpad/+/5a21de6a1bf4b75fb0ada218531b9ec7f0cbdb49
Patch Set 1 #
Total comments: 7
Patch Set 2 : fix context retrieve #Patch Set 3 : remove temp changes #
Total comments: 2
Patch Set 4 : don't self-suspend #
Total comments: 4
Patch Set 5 : fix #
Total comments: 2
Patch Set 6 : stub dr4/5 #Patch Set 7 : . #
Total comments: 2
Patch Set 8 : fix current thread #
Messages
Total messages: 15 (2 generated)
|