Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
28ec3090
Commit
28ec3090
authored
Sep 12, 2022
by
Brendan Shanks
Committed by
Alexandre Julliard
Sep 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Remove 32-bit-specific macOS #ifdefs.
parent
d35c361e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
mach.c
server/mach.c
+0
-9
No files found.
server/mach.c
View file @
28ec3090
...
...
@@ -173,14 +173,9 @@ void get_thread_context( struct thread *thread, context_t *context, unsigned int
if
(
!
thread_get_state
(
port
,
x86_DEBUG_STATE
,
(
thread_state_t
)
&
state
,
&
count
))
{
#ifdef __x86_64__
assert
(
state
.
dsh
.
flavor
==
x86_DEBUG_STATE32
||
state
.
dsh
.
flavor
==
x86_DEBUG_STATE64
);
#else
assert
(
state
.
dsh
.
flavor
==
x86_DEBUG_STATE32
);
#endif
#ifdef __x86_64__
if
(
state
.
dsh
.
flavor
==
x86_DEBUG_STATE64
)
{
context
->
debug
.
x86_64_regs
.
dr0
=
state
.
uds
.
ds64
.
__dr0
;
...
...
@@ -191,7 +186,6 @@ void get_thread_context( struct thread *thread, context_t *context, unsigned int
context
->
debug
.
x86_64_regs
.
dr7
=
state
.
uds
.
ds64
.
__dr7
;
}
else
#endif
{
context
->
debug
.
i386_regs
.
dr0
=
state
.
uds
.
ds32
.
__dr0
;
context
->
debug
.
i386_regs
.
dr1
=
state
.
uds
.
ds32
.
__dr1
;
...
...
@@ -227,8 +221,6 @@ void set_thread_context( struct thread *thread, const context_t *context, unsign
return
;
}
#ifdef __x86_64__
if
(
thread
->
process
->
machine
==
IMAGE_FILE_MACHINE_AMD64
)
{
/* Mac OS doesn't allow setting the global breakpoint flags */
...
...
@@ -246,7 +238,6 @@ void set_thread_context( struct thread *thread, const context_t *context, unsign
state
.
uds
.
ds64
.
__dr7
=
dr7
;
}
else
#endif
{
dr7
=
(
context
->
debug
.
i386_regs
.
dr7
&
~
0xaa
)
|
((
context
->
debug
.
i386_regs
.
dr7
&
0xaa
)
>>
1
);
...
...
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