Eliminate target_check_pending_interrupt
authorPedro Alves <palves@redhat.com>
Tue, 12 Apr 2016 15:49:32 +0000 (16:49 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 12 Apr 2016 16:02:06 +0000 (17:02 +0100)
This is no longer called anywhere.

gdb/ChangeLog:
2016-04-12  Pedro Alves  <palves@redhat.com>

* target.c (target_check_pending_interrupt): Delete.
* target.h (struct target_ops) <to_check_pending_interrupt>:
Remove method.
(target_check_pending_interrupt): Remove declaration.
* target-delegates.c: Regenerate.

gdb/ChangeLog
gdb/target-delegates.c
gdb/target.c
gdb/target.h

index 0e8327eb8d7d7f6834abb71dede5cd557f33e39d..c14eb70749f6df12fc792651afc73c5f59df6c8d 100644 (file)
@@ -1,3 +1,11 @@
+2016-04-12  Pedro Alves  <palves@redhat.com>
+
+       * target.c (target_check_pending_interrupt): Delete.
+       * target.h (struct target_ops) <to_check_pending_interrupt>:
+       Remove method.
+       (target_check_pending_interrupt): Remove declaration.
+       * target-delegates.c: Regenerate.
+
 2016-04-12  Pedro Alves  <palves@redhat.com>
 
        * defs.h: Update comments on SIGINT handling.
index 640803a34024868860b5a33f9dca5dfc7ebb9110..03aa2cc51002e5697f6fc5c963af998b59fe2325 100644 (file)
@@ -1624,28 +1624,6 @@ debug_pass_ctrlc (struct target_ops *self)
   fputs_unfiltered (")\n", gdb_stdlog);
 }
 
-static void
-delegate_check_pending_interrupt (struct target_ops *self)
-{
-  self = self->beneath;
-  self->to_check_pending_interrupt (self);
-}
-
-static void
-tdefault_check_pending_interrupt (struct target_ops *self)
-{
-}
-
-static void
-debug_check_pending_interrupt (struct target_ops *self)
-{
-  fprintf_unfiltered (gdb_stdlog, "-> %s->to_check_pending_interrupt (...)\n", debug_target.to_shortname);
-  debug_target.to_check_pending_interrupt (&debug_target);
-  fprintf_unfiltered (gdb_stdlog, "<- %s->to_check_pending_interrupt (", debug_target.to_shortname);
-  target_debug_print_struct_target_ops_p (&debug_target);
-  fputs_unfiltered (")\n", gdb_stdlog);
-}
-
 static void
 delegate_rcmd (struct target_ops *self, const char *arg1, struct ui_file *arg2)
 {
@@ -4213,8 +4191,6 @@ install_delegators (struct target_ops *ops)
     ops->to_interrupt = delegate_interrupt;
   if (ops->to_pass_ctrlc == NULL)
     ops->to_pass_ctrlc = delegate_pass_ctrlc;
-  if (ops->to_check_pending_interrupt == NULL)
-    ops->to_check_pending_interrupt = delegate_check_pending_interrupt;
   if (ops->to_rcmd == NULL)
     ops->to_rcmd = delegate_rcmd;
   if (ops->to_pid_to_exec_file == NULL)
@@ -4462,7 +4438,6 @@ install_dummy_methods (struct target_ops *ops)
   ops->to_stop = tdefault_stop;
   ops->to_interrupt = tdefault_interrupt;
   ops->to_pass_ctrlc = default_target_pass_ctrlc;
-  ops->to_check_pending_interrupt = tdefault_check_pending_interrupt;
   ops->to_rcmd = default_rcmd;
   ops->to_pid_to_exec_file = tdefault_pid_to_exec_file;
   ops->to_log_command = tdefault_log_command;
@@ -4619,7 +4594,6 @@ init_debug_target (struct target_ops *ops)
   ops->to_stop = debug_stop;
   ops->to_interrupt = debug_interrupt;
   ops->to_pass_ctrlc = debug_pass_ctrlc;
-  ops->to_check_pending_interrupt = debug_check_pending_interrupt;
   ops->to_rcmd = debug_rcmd;
   ops->to_pid_to_exec_file = debug_pid_to_exec_file;
   ops->to_log_command = debug_log_command;
index d580983c4fa6b4ded042fe63799fa3c1176aae8c..a9744c4f67dc4334cb68a69d06897478ac6f4bc5 100644 (file)
@@ -3378,14 +3378,6 @@ default_target_pass_ctrlc (struct target_ops *ops)
   target_interrupt (inferior_ptid);
 }
 
-/* See target.h.  */
-
-void
-target_check_pending_interrupt (void)
-{
-  (*current_target.to_check_pending_interrupt) (&current_target);
-}
-
 /* See target/target.h.  */
 
 void
index 00625fec63c4f73d08c33eafb2839953143b5f62..6b5b6e0c1c671a1846008cc9d702d309f191d4c0 100644 (file)
@@ -647,8 +647,6 @@ struct target_ops
       TARGET_DEFAULT_IGNORE ();
     void (*to_pass_ctrlc) (struct target_ops *)
       TARGET_DEFAULT_FUNC (default_target_pass_ctrlc);
-    void (*to_check_pending_interrupt) (struct target_ops *)
-      TARGET_DEFAULT_IGNORE ();
     void (*to_rcmd) (struct target_ops *,
                     const char *command, struct ui_file *output)
       TARGET_DEFAULT_FUNC (default_rcmd);
@@ -1729,14 +1727,6 @@ extern void target_pass_ctrlc (void);
    target_interrupt.  */
 extern void default_target_pass_ctrlc (struct target_ops *ops);
 
-/* Some targets install their own SIGINT handler while the target is
-   running.  This method is called from the QUIT macro to give such
-   targets a chance to process a Ctrl-C.  The target may e.g., choose
-   to interrupt the (potentially) long running operation, or give up
-   waiting and disconnect.  */
-
-extern void target_check_pending_interrupt (void);
-
 /* Send the specified COMMAND to the target's monitor
    (shell,interpreter) for execution.  The result of the query is
    placed in OUTBUF.  */
This page took 0.031245 seconds and 4 git commands to generate.