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
2cc56f37
Commit
2cc56f37
authored
Jul 15, 2011
by
Grazvydas Ignotas
Committed by
Alexandre Julliard
Jul 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Set debug enable bits briefly to commit the addresses to kernel.
parent
fa179b1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
exception.c
dlls/ntdll/tests/exception.c
+0
-1
ptrace.c
server/ptrace.c
+3
-0
No files found.
dlls/ntdll/tests/exception.c
View file @
2cc56f37
...
...
@@ -510,7 +510,6 @@ static void check_debug_registers(int test_num, const struct dbgreg_test *test)
CHECK_DEBUG_REG
(
0
,
~
0
);
CHECK_DEBUG_REG
(
1
,
~
0
);
CHECK_DEBUG_REG
(
2
,
~
0
);
if
(
test_num
==
2
)
todo_wine
CHECK_DEBUG_REG
(
3
,
~
0
);
CHECK_DEBUG_REG
(
6
,
0x0f
);
CHECK_DEBUG_REG
(
7
,
~
0xdc00
);
...
...
server/ptrace.c
View file @
2cc56f37
...
...
@@ -605,6 +605,8 @@ void set_thread_context( struct thread *thread, const context_t *context, unsign
if
(
thread
->
context
)
thread
->
context
->
debug
.
i386_regs
.
dr3
=
context
->
debug
.
i386_regs
.
dr3
;
if
(
ptrace
(
PTRACE_POKEUSER
,
pid
,
DR_OFFSET
(
6
),
context
->
debug
.
i386_regs
.
dr6
)
==
-
1
)
goto
error
;
if
(
thread
->
context
)
thread
->
context
->
debug
.
i386_regs
.
dr6
=
context
->
debug
.
i386_regs
.
dr6
;
/* Linux 2.6.33+ needs enable bits set briefly to update value returned by PEEKUSER later */
ptrace
(
PTRACE_POKEUSER
,
pid
,
DR_OFFSET
(
7
),
context
->
debug
.
i386_regs
.
dr7
|
0x55
);
if
(
ptrace
(
PTRACE_POKEUSER
,
pid
,
DR_OFFSET
(
7
),
context
->
debug
.
i386_regs
.
dr7
)
==
-
1
)
goto
error
;
if
(
thread
->
context
)
thread
->
context
->
debug
.
i386_regs
.
dr7
=
context
->
debug
.
i386_regs
.
dr7
;
break
;
...
...
@@ -620,6 +622,7 @@ void set_thread_context( struct thread *thread, const context_t *context, unsign
if
(
thread
->
context
)
thread
->
context
->
debug
.
x86_64_regs
.
dr3
=
context
->
debug
.
x86_64_regs
.
dr3
;
if
(
ptrace
(
PTRACE_POKEUSER
,
pid
,
DR_OFFSET
(
6
),
context
->
debug
.
x86_64_regs
.
dr6
)
==
-
1
)
goto
error
;
if
(
thread
->
context
)
thread
->
context
->
debug
.
x86_64_regs
.
dr6
=
context
->
debug
.
x86_64_regs
.
dr6
;
ptrace
(
PTRACE_POKEUSER
,
pid
,
DR_OFFSET
(
7
),
context
->
debug
.
x86_64_regs
.
dr7
|
0x55
);
if
(
ptrace
(
PTRACE_POKEUSER
,
pid
,
DR_OFFSET
(
7
),
context
->
debug
.
x86_64_regs
.
dr7
)
==
-
1
)
goto
error
;
if
(
thread
->
context
)
thread
->
context
->
debug
.
x86_64_regs
.
dr7
=
context
->
debug
.
x86_64_regs
.
dr7
;
break
;
...
...
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