-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
part of i#725: Windows attach: internal attach
Added the basics for internally-triggered attach (via start/stop API) on Windows. Many of these components would also be used for external attach or re-attach. + Get the list of threads using NtQuerySystemInformation SystemProcessesAndThreadsInformation for pre-Vista and NtGetNextThread for Vista+. + Take over each unknown thread by storing its suspended context into data stored on the DR heap and then setting its context to an asm routine that calls DR code and passes in the data. + Work around various cases where the context seems to get reverted or changed. + Handle takeover during init APC, detected on NtContinue, by backing out the attach takeover and doing a regular DR takeover. + Updated api/startstop.c to test internal attach, except the setcontext is being reverted in certain cases, so we can't yet enable that part of the test as a success criterion. There are some issues with the context being set not sticking, but this is a good starting point. SVN-Revision: 2032
- Loading branch information
1 parent
203eb32
commit 9c95ba5
Showing
12 changed files
with
587 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.