This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 06/11] Remove unused deprecated_context_hook
- From: Philipp Rudo <prudo at linux dot vnet dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Cc: arnez at linux dot vnet dot ibm dot com
- Date: Tue, 28 Feb 2017 15:50:11 +0100
- Subject: [PATCH 06/11] Remove unused deprecated_context_hook
- Authentication-results: sourceware.org; auth=none
- References: <20170228145016.22604-1-prudo@linux.vnet.ibm.com>
Nobody actually uses this hook anymore. So simply remove it.
gdb/ChangeLog
* defs.h (deprecated_context_hook): Remove.
* top.c (deprecated_context_hook): Remove.
* interps.c (clear_interpreter_hooks): Adjust.
* infrun.c (handle_signal_stop): Adjust.
---
gdb/defs.h | 1 -
gdb/infrun.c | 3 ---
gdb/interps.c | 1 -
gdb/top.c | 4 ----
4 files changed, 9 deletions(-)
diff --git a/gdb/defs.h b/gdb/defs.h
index 4f3bdd3..6133eb9 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -672,7 +672,6 @@ extern void (*deprecated_print_frame_info_listing_hook) (struct symtab * s,
int noerror);
extern int (*deprecated_query_hook) (const char *, va_list)
ATTRIBUTE_FPTR_PRINTF(1,0);
-extern void (*deprecated_context_hook) (int);
extern ptid_t (*deprecated_target_wait_hook) (ptid_t ptid,
struct target_waitstatus *status,
int options);
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 1e5e9f1..2085c94 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -5752,9 +5752,6 @@ handle_signal_stop (struct execution_control_state *ecs)
fprintf_unfiltered (gdb_stdlog, "infrun: context switch\n");
context_switch (ecs->ptid);
-
- if (deprecated_context_hook)
- deprecated_context_hook (ptid_to_global_thread_id (ecs->ptid));
}
/* At this point, get hold of the now-current thread's frame. */
diff --git a/gdb/interps.c b/gdb/interps.c
index bc56666..8f122c5 100644
--- a/gdb/interps.c
+++ b/gdb/interps.c
@@ -391,7 +391,6 @@ clear_interpreter_hooks (void)
deprecated_print_frame_info_listing_hook = 0;
/*print_frame_more_info_hook = 0; */
deprecated_query_hook = 0;
- deprecated_context_hook = 0;
deprecated_target_wait_hook = 0;
deprecated_call_command_hook = 0;
deprecated_error_begin_hook = 0;
diff --git a/gdb/top.c b/gdb/top.c
index fd5bd5a..cc5df78 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -213,10 +213,6 @@ ptid_t (*deprecated_target_wait_hook) (ptid_t ptid,
void (*deprecated_call_command_hook) (struct cmd_list_element * c,
char *cmd, int from_tty);
-/* Called when the current thread changes. Argument is thread id. */
-
-void (*deprecated_context_hook) (int id);
-
/* The highest UI number ever assigned. */
static int highest_ui_num;
--
2.8.4