Module: wine Branch: refs/heads/master Commit: d8659a977303e7e871ff65dd8486800b92b4f854 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d8659a977303e7e871ff65dd...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Apr 10 20:27:45 2006 +0200
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, 0 insertions(+), 43 deletions(-)
diff --git a/server/context_alpha.c b/server/context_alpha.c index 41771bf..118bff7 100644 --- a/server/context_alpha.c +++ b/server/context_alpha.c @@ -334,12 +334,6 @@ void *get_thread_ip( struct thread *thre 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 cf334cb..7285905 100644 --- a/server/context_i386.c +++ b/server/context_i386.c @@ -550,15 +550,6 @@ void *get_thread_ip( struct thread *thre 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 9a438b9..8cf1424 100644 --- a/server/context_powerpc.c +++ b/server/context_powerpc.c @@ -273,18 +273,6 @@ void *get_thread_ip( struct thread *thre 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 39c3dd3..805fd7e 100644 --- a/server/context_sparc.c +++ b/server/context_sparc.c @@ -172,12 +172,6 @@ void *get_thread_ip( struct thread *thre 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 ee8bb31..ee9665e 100644 --- a/server/context_x86_64.c +++ b/server/context_x86_64.c @@ -261,15 +261,6 @@ void *get_thread_ip( struct thread *thre 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 ec5a55e..6b4818c 100644 --- a/server/thread.h +++ b/server/thread.h @@ -124,7 +124,6 @@ extern int get_ptrace_pid( struct 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 );