Commit cc63b768 authored by Alexandre Julliard's avatar Alexandre Julliard

server: Remove the no longer used pid/tid fields in the init_thread request.

parent 7404ef3e
...@@ -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 718 #define SERVER_PROTOCOL_VERSION 719
/* ### protocol_version end ### */ /* ### protocol_version end ### */
......
...@@ -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
......
...@@ -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 );
......
...@@ -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);
} }
......
...@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment