Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
jacob-wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jacob Czekalla
jacob-wine
Commits
fa179b1c
Commit
fa179b1c
authored
13 years ago
by
Grazvydas Ignotas
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
server: Set RW and LEN bits of DR7 before setting DR0-DR3.
parent
382d9538
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/ntdll/tests/exception.c
+0
-2
0 additions, 2 deletions
dlls/ntdll/tests/exception.c
server/ptrace.c
+3
-0
3 additions, 0 deletions
server/ptrace.c
with
3 additions
and
2 deletions
dlls/ntdll/tests/exception.c
+
0
−
2
View file @
fa179b1c
...
...
@@ -509,12 +509,10 @@ static void check_debug_registers(int test_num, const struct dbgreg_test *test)
CHECK_DEBUG_REG
(
0
,
~
0
);
CHECK_DEBUG_REG
(
1
,
~
0
);
if
(
test_num
==
2
)
todo_wine
CHECK_DEBUG_REG
(
2
,
~
0
);
if
(
test_num
==
2
)
todo_wine
CHECK_DEBUG_REG
(
3
,
~
0
);
CHECK_DEBUG_REG
(
6
,
0x0f
);
if
(
test_num
==
2
)
todo_wine
CHECK_DEBUG_REG
(
7
,
~
0xdc00
);
}
...
...
This diff is collapsed.
Click to expand it.
server/ptrace.c
+
3
−
0
View file @
fa179b1c
...
...
@@ -593,6 +593,8 @@ void set_thread_context( struct thread *thread, const context_t *context, unsign
switch
(
context
->
cpu
)
{
case
CPU_x86
:
/* Linux 2.6.33+ does DR0-DR3 alignment validation, so it has to know LEN bits first */
if
(
ptrace
(
PTRACE_POKEUSER
,
pid
,
DR_OFFSET
(
7
),
context
->
debug
.
i386_regs
.
dr7
&
0xffff0000
)
==
-
1
)
goto
error
;
if
(
ptrace
(
PTRACE_POKEUSER
,
pid
,
DR_OFFSET
(
0
),
context
->
debug
.
i386_regs
.
dr0
)
==
-
1
)
goto
error
;
if
(
thread
->
context
)
thread
->
context
->
debug
.
i386_regs
.
dr0
=
context
->
debug
.
i386_regs
.
dr0
;
if
(
ptrace
(
PTRACE_POKEUSER
,
pid
,
DR_OFFSET
(
1
),
context
->
debug
.
i386_regs
.
dr1
)
==
-
1
)
goto
error
;
...
...
@@ -607,6 +609,7 @@ void set_thread_context( struct thread *thread, const context_t *context, unsign
if
(
thread
->
context
)
thread
->
context
->
debug
.
i386_regs
.
dr7
=
context
->
debug
.
i386_regs
.
dr7
;
break
;
case
CPU_x86_64
:
if
(
ptrace
(
PTRACE_POKEUSER
,
pid
,
DR_OFFSET
(
7
),
context
->
debug
.
x86_64_regs
.
dr7
&
0xffff0000
)
==
-
1
)
goto
error
;
if
(
ptrace
(
PTRACE_POKEUSER
,
pid
,
DR_OFFSET
(
0
),
context
->
debug
.
x86_64_regs
.
dr0
)
==
-
1
)
goto
error
;
if
(
thread
->
context
)
thread
->
context
->
debug
.
x86_64_regs
.
dr0
=
context
->
debug
.
x86_64_regs
.
dr0
;
if
(
ptrace
(
PTRACE_POKEUSER
,
pid
,
DR_OFFSET
(
1
),
context
->
debug
.
x86_64_regs
.
dr1
)
==
-
1
)
goto
error
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment