From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3205 invoked by alias); 13 Mar 2008 19:06:08 -0000 Received: (qmail 3121 invoked by uid 22791); 13 Mar 2008 19:05:49 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 13 Mar 2008 19:04:57 +0000 Received: (qmail 10658 invoked from network); 13 Mar 2008 19:04:55 -0000 Received: from unknown (HELO localhost) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 13 Mar 2008 19:04:55 -0000 From: Vladimir Prus Date: Thu, 13 Mar 2008 19:06:00 -0000 Subject: [RFA] Remove unused remote.c hooks. To: gdb-patches@sources.redhat.com X-TUID: 3252ea937389e182 X-Length: 2460 X-UID: 143 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803132204.52558.vladimir@codesourcery.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00152.txt.bz2 This patch removes some code that's apparently no longer used anywhere in GDB. OK? - Volodya * 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/remote.c | 20 -------------------- 1 files changed, 0 insertions(+), 20 deletions(-) diff --git a/gdb/remote.c b/gdb/remote.c index 56c7f5c..73fcc2a 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. */ -- 1.5.3.5