From 4cf46804f3a6d4ab31cbb59831b7ee18fae99498 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 14 Mar 2008 17:44:43 +0000 Subject: [PATCH] Remove unused remote.c hooks. * remote.c (deprecated_target_resume_hook) (deprecated_target_wait_loop_hook): Remove. (remote_resume): Do not call deprecated_target_resume_hook. (remote_wait): Do not call deprecated_target_wait_loop_hook. (remote_async_wait): Likewise. --- gdb/ChangeLog | 9 +++++++++ gdb/remote.c | 20 -------------------- 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dd9e8b201cd..0ecd1d138e9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2008-03-14 Vladimir Prus + + Remove unused remote.c hooks. + * remote.c (deprecated_target_resume_hook) + (deprecated_target_wait_loop_hook): Remove. + (remote_resume): Do not call deprecated_target_resume_hook. + (remote_wait): Do not call deprecated_target_wait_loop_hook. + (remote_async_wait): Likewise. + 2008-03-14 Vladimir Prus Implement MI notification for new threads. diff --git a/gdb/remote.c b/gdb/remote.c index fac4d482aa3..88cde580bb2 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -1037,11 +1037,6 @@ static int use_threadextra_query; static struct async_signal_handler *sigint_remote_twice_token; static struct async_signal_handler *sigint_remote_token; -/* These are pointers to hook functions that may be set in order to - modify resume/wait behavior for a particular architecture. */ - -void (*deprecated_target_resume_hook) (void); -void (*deprecated_target_wait_loop_hook) (void); @@ -3096,11 +3091,6 @@ remote_resume (ptid_t ptid, int step, enum target_signal siggnal) last_sent_signal = siggnal; last_sent_step = step; - /* A hook for when we need to do something at the last moment before - resumption. */ - if (deprecated_target_resume_hook) - (*deprecated_target_resume_hook) (); - /* Update the inferior on signals to silently pass, if they've changed. */ remote_pass_signals (); @@ -3376,11 +3366,6 @@ remote_wait (ptid_t ptid, struct target_waitstatus *status) buf = rs->buf; - /* This is a hook for when we need to do something (perhaps the - collection of trace data) every time the target stops. */ - if (deprecated_target_wait_loop_hook) - (*deprecated_target_wait_loop_hook) (); - remote_stopped_by_watchpoint_p = 0; switch (buf[0]) @@ -3610,11 +3595,6 @@ remote_async_wait (ptid_t ptid, struct target_waitstatus *status) buf = rs->buf; - /* This is a hook for when we need to do something (perhaps the - collection of trace data) every time the target stops. */ - if (deprecated_target_wait_loop_hook) - (*deprecated_target_wait_loop_hook) (); - switch (buf[0]) { case 'E': /* Error of some sort. */ -- 2.30.2