From d8659a977303e7e871ff65dd8486800b92b4f854 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 10 Apr 2006 20:27:45 +0200 Subject: [PATCH] server: Get rid of the no longer used get_thread_single_step function. --- server/context_alpha.c | 6 ------ server/context_i386.c | 9 --------- server/context_powerpc.c | 12 ------------ server/context_sparc.c | 6 ------ server/context_x86_64.c | 9 --------- server/thread.h | 1 - 6 files changed, 43 deletions(-) diff --git a/server/context_alpha.c b/server/context_alpha.c index 41771bf00e..118bff77ed 100644 --- a/server/context_alpha.c +++ b/server/context_alpha.c @@ -334,12 +334,6 @@ void *get_thread_ip( struct thread *thread ) return (void *)context.Fir; } -/* determine if we should continue the thread in single-step mode */ -int get_thread_single_step( struct thread *thread ) -{ - return 0; /* FIXME */ -} - /* send a signal to a specific thread */ int tkill( int tgid, int pid, int sig ) { diff --git a/server/context_i386.c b/server/context_i386.c index cf334cb7cb..7285905c0b 100644 --- a/server/context_i386.c +++ b/server/context_i386.c @@ -550,15 +550,6 @@ void *get_thread_ip( struct thread *thread ) return (void *)context.Eip; } -/* determine if we should continue the thread in single-step mode */ -int get_thread_single_step( struct thread *thread ) -{ - CONTEXT context; - if (thread->context) return 0; /* don't single-step inside exception event */ - get_thread_context_ptrace( thread, CONTEXT_CONTROL, &context ); - return (context.EFlags & 0x100) != 0; -} - /* send a signal to a specific thread */ int tkill( int tgid, int pid, int sig ) { diff --git a/server/context_powerpc.c b/server/context_powerpc.c index 9a438b9790..8cf1424d3d 100644 --- a/server/context_powerpc.c +++ b/server/context_powerpc.c @@ -273,18 +273,6 @@ void *get_thread_ip( struct thread *thread ) return (void *)context.Iar; } -/* determine if we should continue the thread in single-step mode */ -int get_thread_single_step( struct thread *thread ) -{ - CONTEXT context; - if (thread->context) return 0; - get_thread_context_ptrace( thread, CONTEXT_CONTROL, &context ); -#ifndef MSR_SE -# define MSR_SE (1<<10) -#endif - return (context.Msr & MSR_SE) != 0; -} - /* send a signal to a specific thread */ int tkill( int tgid, int pid, int sig ) { diff --git a/server/context_sparc.c b/server/context_sparc.c index 39c3dd3361..805fd7e591 100644 --- a/server/context_sparc.c +++ b/server/context_sparc.c @@ -172,12 +172,6 @@ void *get_thread_ip( struct thread *thread ) return (void *)context.pc; } -/* determine if we should continue the thread in single-step mode */ -int get_thread_single_step( struct thread *thread ) -{ - return 0; /* FIXME */ -} - /* send a signal to a specific thread */ int tkill( int tgid, int pid, int sig ) { diff --git a/server/context_x86_64.c b/server/context_x86_64.c index ee8bb318e1..ee9665e6f2 100644 --- a/server/context_x86_64.c +++ b/server/context_x86_64.c @@ -261,15 +261,6 @@ void *get_thread_ip( struct thread *thread ) return (void *)context.Rip; } -/* determine if we should continue the thread in single-step mode */ -int get_thread_single_step( struct thread *thread ) -{ - CONTEXT context; - if (thread->context) return 0; /* don't single-step inside exception event */ - get_thread_context_ptrace( thread, CONTEXT_CONTROL, &context ); - return (context.EFlags & 0x100) != 0; -} - /* send a signal to a specific thread */ int tkill( int tgid, int pid, int sig ) { diff --git a/server/thread.h b/server/thread.h index ec5a55e8f0..6b4818cadd 100644 --- a/server/thread.h +++ b/server/thread.h @@ -124,7 +124,6 @@ extern int get_ptrace_pid( struct thread *thread ); extern int suspend_for_ptrace( struct thread *thread ); extern void resume_after_ptrace( struct thread *thread ); extern void *get_thread_ip( struct thread *thread ); -extern int get_thread_single_step( struct thread *thread ); extern void get_thread_context( struct thread *thread, CONTEXT *context, unsigned int flags ); extern void set_thread_context( struct thread *thread, const CONTEXT *context, unsigned int flags ); extern int tkill( int tgid, int pid, int sig );