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
cc63b768
Commit
cc63b768
authored
Jun 28, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Remove the no longer used pid/tid fields in the init_thread request.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7404ef3e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
15 deletions
+5
-15
server_protocol.h
include/wine/server_protocol.h
+2
-4
protocol.def
server/protocol.def
+0
-2
request.h
server/request.h
+2
-4
thread.c
server/thread.c
+0
-2
trace.c
server/trace.c
+1
-3
No files found.
include/wine/server_protocol.h
View file @
cc63b768
...
@@ -952,10 +952,8 @@ struct init_thread_request
...
@@ -952,10 +952,8 @@ struct init_thread_request
struct
init_thread_reply
struct
init_thread_reply
{
{
struct
reply_header
__header
;
struct
reply_header
__header
;
process_id_t
pid
;
thread_id_t
tid
;
int
suspend
;
int
suspend
;
char
__pad_
20
[
4
];
char
__pad_
12
[
4
];
};
};
...
@@ -6236,7 +6234,7 @@ union generic_reply
...
@@ -6236,7 +6234,7 @@ union generic_reply
/* ### protocol_version begin ### */
/* ### protocol_version begin ### */
#define SERVER_PROTOCOL_VERSION 71
8
#define SERVER_PROTOCOL_VERSION 71
9
/* ### protocol_version end ### */
/* ### protocol_version end ### */
...
...
server/protocol.def
View file @
cc63b768
...
@@ -924,8 +924,6 @@ typedef struct
...
@@ -924,8 +924,6 @@ typedef struct
client_ptr_t teb; /* TEB of new thread (in thread address space) */
client_ptr_t teb; /* TEB of new thread (in thread address space) */
client_ptr_t entry; /* entry point (in thread address space) */
client_ptr_t entry; /* entry point (in thread address space) */
@REPLY
@REPLY
process_id_t pid; /* process id of the new thread's process */
thread_id_t tid; /* thread id of the new thread */
int suspend; /* is thread suspended? */
int suspend; /* is thread suspended? */
@END
@END
...
...
server/request.h
View file @
cc63b768
...
@@ -758,10 +758,8 @@ C_ASSERT( FIELD_OFFSET(struct init_thread_request, wait_fd) == 20 );
...
@@ -758,10 +758,8 @@ C_ASSERT( FIELD_OFFSET(struct init_thread_request, wait_fd) == 20 );
C_ASSERT
(
FIELD_OFFSET
(
struct
init_thread_request
,
teb
)
==
24
);
C_ASSERT
(
FIELD_OFFSET
(
struct
init_thread_request
,
teb
)
==
24
);
C_ASSERT
(
FIELD_OFFSET
(
struct
init_thread_request
,
entry
)
==
32
);
C_ASSERT
(
FIELD_OFFSET
(
struct
init_thread_request
,
entry
)
==
32
);
C_ASSERT
(
sizeof
(
struct
init_thread_request
)
==
40
);
C_ASSERT
(
sizeof
(
struct
init_thread_request
)
==
40
);
C_ASSERT
(
FIELD_OFFSET
(
struct
init_thread_reply
,
pid
)
==
8
);
C_ASSERT
(
FIELD_OFFSET
(
struct
init_thread_reply
,
suspend
)
==
8
);
C_ASSERT
(
FIELD_OFFSET
(
struct
init_thread_reply
,
tid
)
==
12
);
C_ASSERT
(
sizeof
(
struct
init_thread_reply
)
==
16
);
C_ASSERT
(
FIELD_OFFSET
(
struct
init_thread_reply
,
suspend
)
==
16
);
C_ASSERT
(
sizeof
(
struct
init_thread_reply
)
==
24
);
C_ASSERT
(
FIELD_OFFSET
(
struct
terminate_process_request
,
handle
)
==
12
);
C_ASSERT
(
FIELD_OFFSET
(
struct
terminate_process_request
,
handle
)
==
12
);
C_ASSERT
(
FIELD_OFFSET
(
struct
terminate_process_request
,
exit_code
)
==
16
);
C_ASSERT
(
FIELD_OFFSET
(
struct
terminate_process_request
,
exit_code
)
==
16
);
C_ASSERT
(
sizeof
(
struct
terminate_process_request
)
==
24
);
C_ASSERT
(
sizeof
(
struct
terminate_process_request
)
==
24
);
...
...
server/thread.c
View file @
cc63b768
...
@@ -1457,8 +1457,6 @@ DECL_HANDLER(init_thread)
...
@@ -1457,8 +1457,6 @@ DECL_HANDLER(init_thread)
generate_debug_event
(
current
,
DbgCreateThreadStateChange
,
&
req
->
entry
);
generate_debug_event
(
current
,
DbgCreateThreadStateChange
,
&
req
->
entry
);
set_thread_affinity
(
current
,
current
->
affinity
);
set_thread_affinity
(
current
,
current
->
affinity
);
reply
->
pid
=
get_process_id
(
current
->
process
);
reply
->
tid
=
get_thread_id
(
current
);
reply
->
suspend
=
(
current
->
suspend
||
current
->
process
->
suspend
||
current
->
context
!=
NULL
);
reply
->
suspend
=
(
current
->
suspend
||
current
->
process
->
suspend
||
current
->
context
!=
NULL
);
}
}
...
...
server/trace.c
View file @
cc63b768
...
@@ -1545,9 +1545,7 @@ static void dump_init_thread_request( const struct init_thread_request *req )
...
@@ -1545,9 +1545,7 @@ static void dump_init_thread_request( const struct init_thread_request *req )
static
void
dump_init_thread_reply
(
const
struct
init_thread_reply
*
req
)
static
void
dump_init_thread_reply
(
const
struct
init_thread_reply
*
req
)
{
{
fprintf
(
stderr
,
" pid=%04x"
,
req
->
pid
);
fprintf
(
stderr
,
" suspend=%d"
,
req
->
suspend
);
fprintf
(
stderr
,
", tid=%04x"
,
req
->
tid
);
fprintf
(
stderr
,
", suspend=%d"
,
req
->
suspend
);
}
}
static
void
dump_terminate_process_request
(
const
struct
terminate_process_request
*
req
)
static
void
dump_terminate_process_request
(
const
struct
terminate_process_request
*
req
)
...
...
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