This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Remove unused remote.c hooks.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]