diff --git a/server/context_alpha.c b/server/context_alpha.c index 41771bf00e3..118bff77ed7 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 cf334cb7cbf..7285905c0b9 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 9a438b97902..8cf1424d3d6 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 39c3dd33613..805fd7e5911 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 ee8bb318e1e..ee9665e6f22 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 ec5a55e8f0b..6b4818caddf 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 );