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
ff7795ef
Commit
ff7795ef
authored
Nov 01, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't send an extra signal when waiting for a debug event, just do a
normal wait. Return the debug event status directly as return value of the server call.
parent
d6f7adb3
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
18 deletions
+10
-18
except.c
dlls/kernel/except.c
+3
-7
exception.c
dlls/ntdll/exception.c
+3
-7
server_protocol.h
include/wine/server_protocol.h
+1
-1
debugger.c
server/debugger.c
+2
-2
protocol.def
server/protocol.def
+0
-1
thread.c
server/thread.c
+1
-0
No files found.
dlls/kernel/except.c
View file @
ff7795ef
...
@@ -196,19 +196,15 @@ static NTSTATUS send_debug_event( EXCEPTION_RECORD *rec, int first_chance, CONTE
...
@@ -196,19 +196,15 @@ static NTSTATUS send_debug_event( EXCEPTION_RECORD *rec, int first_chance, CONTE
SERVER_END_REQ
;
SERVER_END_REQ
;
if
(
ret
)
return
ret
;
if
(
ret
)
return
ret
;
/* No need to wait on the handle since the process gets suspended
WaitForSingleObject
(
handle
,
INFINITE
);
* once the event is passed to the debugger, so when we get back
* here the event has been continued already.
*/
SERVER_START_REQ
(
get_exception_status
)
SERVER_START_REQ
(
get_exception_status
)
{
{
req
->
handle
=
handle
;
req
->
handle
=
handle
;
wine_server_set_reply
(
req
,
context
,
sizeof
(
*
context
)
);
wine_server_set_reply
(
req
,
context
,
sizeof
(
*
context
)
);
wine_server_call
(
req
);
ret
=
wine_server_call
(
req
);
ret
=
reply
->
status
;
}
}
SERVER_END_REQ
;
SERVER_END_REQ
;
NtClose
(
handle
);
return
ret
;
return
ret
;
}
}
...
...
dlls/ntdll/exception.c
View file @
ff7795ef
...
@@ -164,19 +164,15 @@ static int send_debug_event( EXCEPTION_RECORD *rec, int first_chance, CONTEXT *c
...
@@ -164,19 +164,15 @@ static int send_debug_event( EXCEPTION_RECORD *rec, int first_chance, CONTEXT *c
SERVER_END_REQ
;
SERVER_END_REQ
;
if
(
!
handle
)
return
0
;
if
(
!
handle
)
return
0
;
/* No need to wait on the handle since the process gets suspended
NTDLL_wait_for_multiple_objects
(
1
,
&
handle
,
0
,
NULL
,
0
);
* once the event is passed to the debugger, so when we get back
* here the event has been continued already.
*/
SERVER_START_REQ
(
get_exception_status
)
SERVER_START_REQ
(
get_exception_status
)
{
{
req
->
handle
=
handle
;
req
->
handle
=
handle
;
wine_server_set_reply
(
req
,
context
,
sizeof
(
*
context
)
);
wine_server_set_reply
(
req
,
context
,
sizeof
(
*
context
)
);
wine_server_call
(
req
);
ret
=
wine_server_call
(
req
);
ret
=
reply
->
status
;
}
}
SERVER_END_REQ
;
SERVER_END_REQ
;
NtClose
(
handle
);
return
ret
;
return
ret
;
}
}
...
...
include/wine/server_protocol.h
View file @
ff7795ef
...
@@ -4207,6 +4207,6 @@ union generic_reply
...
@@ -4207,6 +4207,6 @@ union generic_reply
struct
set_mailslot_info_reply
set_mailslot_info_reply
;
struct
set_mailslot_info_reply
set_mailslot_info_reply
;
};
};
#define SERVER_PROTOCOL_VERSION 19
5
#define SERVER_PROTOCOL_VERSION 19
6
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/debugger.c
View file @
ff7795ef
...
@@ -661,19 +661,19 @@ DECL_HANDLER(get_exception_status)
...
@@ -661,19 +661,19 @@ DECL_HANDLER(get_exception_status)
{
{
struct
debug_event
*
event
;
struct
debug_event
*
event
;
reply
->
status
=
0
;
if
((
event
=
(
struct
debug_event
*
)
get_handle_obj
(
current
->
process
,
req
->
handle
,
if
((
event
=
(
struct
debug_event
*
)
get_handle_obj
(
current
->
process
,
req
->
handle
,
0
,
&
debug_event_ops
)))
0
,
&
debug_event_ops
)))
{
{
close_handle
(
current
->
process
,
req
->
handle
,
NULL
);
if
(
event
->
state
==
EVENT_CONTINUED
)
if
(
event
->
state
==
EVENT_CONTINUED
)
{
{
reply
->
status
=
event
->
status
;
if
(
current
->
context
==
&
event
->
context
)
if
(
current
->
context
==
&
event
->
context
)
{
{
size_t
size
=
min
(
sizeof
(
CONTEXT
),
get_reply_max_size
()
);
size_t
size
=
min
(
sizeof
(
CONTEXT
),
get_reply_max_size
()
);
set_reply_data
(
&
event
->
context
,
size
);
set_reply_data
(
&
event
->
context
,
size
);
current
->
context
=
NULL
;
current
->
context
=
NULL
;
}
}
set_error
(
event
->
status
);
}
}
else
set_error
(
STATUS_PENDING
);
else
set_error
(
STATUS_PENDING
);
release_object
(
event
);
release_object
(
event
);
...
...
server/protocol.def
View file @
ff7795ef
...
@@ -1162,7 +1162,6 @@ enum char_info_mode
...
@@ -1162,7 +1162,6 @@ enum char_info_mode
@REQ(get_exception_status)
@REQ(get_exception_status)
obj_handle_t handle; /* handle to the queued event */
obj_handle_t handle; /* handle to the queued event */
@REPLY
@REPLY
int status; /* event continuation status */
VARARG(context,context); /* modified thread context */
VARARG(context,context); /* modified thread context */
@END
@END
...
...
server/thread.c
View file @
ff7795ef
...
@@ -315,6 +315,7 @@ static void set_thread_info( struct thread *thread,
...
@@ -315,6 +315,7 @@ static void set_thread_info( struct thread *thread,
/* stop a thread (at the Unix level) */
/* stop a thread (at the Unix level) */
void
stop_thread
(
struct
thread
*
thread
)
void
stop_thread
(
struct
thread
*
thread
)
{
{
if
(
thread
->
context
)
return
;
/* already inside a debug event, no need for a signal */
/* can't stop a thread while initialisation is in progress */
/* can't stop a thread while initialisation is in progress */
if
(
is_process_init_done
(
thread
->
process
))
send_thread_signal
(
thread
,
SIGUSR1
);
if
(
is_process_init_done
(
thread
->
process
))
send_thread_signal
(
thread
,
SIGUSR1
);
}
}
...
...
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