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
e7a032c1
Commit
e7a032c1
authored
Feb 26, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Work around Mac OS not being able to set global breakpoint flags.
parent
de7d1ad7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
mach.c
server/mach.c
+6
-2
No files found.
server/mach.c
View file @
e7a032c1
...
...
@@ -211,6 +211,7 @@ void set_thread_context( struct thread *thread, const context_t *context, unsign
mach_msg_type_number_t
count
=
sizeof
(
state
)
/
sizeof
(
int
);
mach_msg_type_name_t
type
;
mach_port_t
port
,
process_port
=
get_process_port
(
thread
->
process
);
unsigned
int
dr7
;
/* all other regs are handled on the client side */
assert
(
flags
==
SERVER_CTX_DEBUG_REGISTERS
);
...
...
@@ -223,6 +224,9 @@ void set_thread_context( struct thread *thread, const context_t *context, unsign
return
;
}
/* Mac OS doesn't allow setting the global breakpoint flags */
dr7
=
(
context
->
debug
.
i386_regs
.
dr7
&
~
0xaa
)
|
((
context
->
debug
.
i386_regs
.
dr7
&
0xaa
)
>>
1
);
#if __DARWIN_UNIX03 && defined(_STRUCT_X86_DEBUG_STATE32)
state
.
__dr0
=
context
->
debug
.
i386_regs
.
dr0
;
state
.
__dr1
=
context
->
debug
.
i386_regs
.
dr1
;
...
...
@@ -231,7 +235,7 @@ void set_thread_context( struct thread *thread, const context_t *context, unsign
state
.
__dr4
=
0
;
state
.
__dr5
=
0
;
state
.
__dr6
=
context
->
debug
.
i386_regs
.
dr6
;
state
.
__dr7
=
context
->
debug
.
i386_regs
.
dr7
;
state
.
__dr7
=
dr7
;
#else
state
.
dr0
=
context
->
debug
.
i386_regs
.
dr0
;
state
.
dr1
=
context
->
debug
.
i386_regs
.
dr1
;
...
...
@@ -240,7 +244,7 @@ void set_thread_context( struct thread *thread, const context_t *context, unsign
state
.
dr4
=
0
;
state
.
dr5
=
0
;
state
.
dr6
=
context
->
debug
.
i386_regs
.
dr6
;
state
.
dr7
=
context
->
debug
.
i386_regs
.
dr7
;
state
.
dr7
=
dr7
;
#endif
if
(
!
thread_set_state
(
port
,
x86_DEBUG_STATE32
,
(
thread_state_t
)
&
state
,
count
))
{
...
...
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