Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
385142bb
Commit
385142bb
authored
May 24, 2021
by
Paul Gofman
Committed by
Alexandre Julliard
May 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Check for system regs before suspending for ptrace.
Signed-off-by:
Paul Gofman
<
pgofman@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8a54803c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ptrace.c
server/ptrace.c
+3
-3
No files found.
server/ptrace.c
View file @
385142bb
...
...
@@ -571,15 +571,15 @@ void get_thread_context( struct thread *thread, context_t *context, unsigned int
/* all other regs are handled on the client side */
assert
(
flags
==
SERVER_CTX_DEBUG_REGISTERS
);
if
(
!
suspend_for_ptrace
(
thread
))
return
;
if
(
!
(
thread
->
system_regs
&
SERVER_CTX_DEBUG_REGISTERS
))
{
/* caller has initialized everything to 0 already, just return */
context
->
flags
|=
SERVER_CTX_DEBUG_REGISTERS
;
goto
done
;
return
;
}
if
(
!
suspend_for_ptrace
(
thread
))
return
;
for
(
i
=
0
;
i
<
8
;
i
++
)
{
if
(
i
==
4
||
i
==
5
)
continue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment