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
137fd7d3
Commit
137fd7d3
authored
Apr 15, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Block signals in send_debug_event.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dbe7694c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
exception.c
dlls/ntdll/exception.c
+19
-12
No files found.
dlls/ntdll/exception.c
View file @
137fd7d3
...
@@ -133,9 +133,12 @@ NTSTATUS send_debug_event( EXCEPTION_RECORD *rec, int first_chance, CONTEXT *con
...
@@ -133,9 +133,12 @@ NTSTATUS send_debug_event( EXCEPTION_RECORD *rec, int first_chance, CONTEXT *con
client_ptr_t
params
[
EXCEPTION_MAXIMUM_PARAMETERS
];
client_ptr_t
params
[
EXCEPTION_MAXIMUM_PARAMETERS
];
context_t
server_context
;
context_t
server_context
;
select_op_t
select_op
;
select_op_t
select_op
;
sigset_t
old_set
;
if
(
!
NtCurrentTeb
()
->
Peb
->
BeingDebugged
)
return
0
;
/* no debugger present */
if
(
!
NtCurrentTeb
()
->
Peb
->
BeingDebugged
)
return
0
;
/* no debugger present */
pthread_sigmask
(
SIG_BLOCK
,
&
server_block_set
,
&
old_set
);
for
(
i
=
0
;
i
<
min
(
rec
->
NumberParameters
,
EXCEPTION_MAXIMUM_PARAMETERS
);
i
++
)
for
(
i
=
0
;
i
<
min
(
rec
->
NumberParameters
,
EXCEPTION_MAXIMUM_PARAMETERS
);
i
++
)
params
[
i
]
=
rec
->
ExceptionInformation
[
i
];
params
[
i
]
=
rec
->
ExceptionInformation
[
i
];
...
@@ -151,23 +154,27 @@ NTSTATUS send_debug_event( EXCEPTION_RECORD *rec, int first_chance, CONTEXT *con
...
@@ -151,23 +154,27 @@ NTSTATUS send_debug_event( EXCEPTION_RECORD *rec, int first_chance, CONTEXT *con
req
->
len
=
i
*
sizeof
(
params
[
0
]);
req
->
len
=
i
*
sizeof
(
params
[
0
]);
wine_server_add_data
(
req
,
params
,
req
->
len
);
wine_server_add_data
(
req
,
params
,
req
->
len
);
wine_server_add_data
(
req
,
&
server_context
,
sizeof
(
server_context
)
);
wine_server_add_data
(
req
,
&
server_context
,
sizeof
(
server_context
)
);
if
(
!
wine_server_call
(
req
))
handle
=
reply
->
handle
;
if
(
!
(
ret
=
wine_server_call
(
req
)
))
handle
=
reply
->
handle
;
}
}
SERVER_END_REQ
;
SERVER_END_REQ
;
if
(
!
handle
)
return
0
;
select_op
.
wait
.
op
=
SELECT_WAIT
;
select_op
.
wait
.
handles
[
0
]
=
handle
;
server_select
(
&
select_op
,
offsetof
(
select_op_t
,
wait
.
handles
[
1
]
),
SELECT_INTERRUPTIBLE
,
TIMEOUT_INFINITE
,
NULL
,
NULL
);
SERVER_START_REQ
(
get_exception_status
)
if
(
handle
)
{
{
req
->
handle
=
handle
;
select_op
.
wait
.
op
=
SELECT_WAIT
;
wine_server_set_reply
(
req
,
&
server_context
,
sizeof
(
server_context
)
);
select_op
.
wait
.
handles
[
0
]
=
handle
;
ret
=
wine_server_call
(
req
);
server_select
(
&
select_op
,
offsetof
(
select_op_t
,
wait
.
handles
[
1
]
),
SELECT_INTERRUPTIBLE
,
TIMEOUT_INFINITE
,
NULL
,
NULL
);
SERVER_START_REQ
(
get_exception_status
)
{
req
->
handle
=
handle
;
wine_server_set_reply
(
req
,
&
server_context
,
sizeof
(
server_context
)
);
ret
=
wine_server_call
(
req
);
}
SERVER_END_REQ
;
if
(
ret
>=
0
)
context_from_server
(
context
,
&
server_context
);
}
}
SERVER_END_REQ
;
if
(
ret
>=
0
)
context_from_server
(
context
,
&
server_context
);
pthread_sigmask
(
SIG_SETMASK
,
&
old_set
,
NULL
);
return
ret
;
return
ret
;
}
}
...
...
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